Mi-Tech-Consulting / frontend-web-client-channel

https://frontend-web-client-channel.vercel.app
1 stars 3 forks source link
frontend
Next.js 14 Client Channel

Overview

This is a starter template using the following stack:

🌈 Contribution guidelines

Here is the procedure on how to work with the GitHub repo, when you want to start coding:

  1. Fork the origin repo to your PERSONAL PRIVATE repo
  2. Working on your new repo, (usually you wanna check out a few feature branches thus to keep the default branch easy to sync and merge from - it is a bit tricky)
  3. When your code is ready to merge, pls create a PULL REQUEST from your repo to the origin repo
  4. Before merging, pls make sure you have run the following commands:
    git submodule update --init
    npm install
    npm run build

    and then commit the changes to the PR

  5. Once the PR is approved, it will be merged to the origin repo
  6. Once the PR is merged, you can delete your PR branch

🙋‍♀️Getting Started

How to Run a Develop Environment in Local

Finally, run the following commands to start the development server:

npm install
npm run dev

You should now be able to access the application at http://localhost:3000.

Make sure you haven't run multiple instances for the same application at the same time.

Authentication

This application uses NextAuth.js for authentication.

How to Use

  1. Create a new user in the database using the /auth/signup endpoint.

  2. Sign in using the /auth/signin endpoint.

  3. You will use the /api/auth/session endpoint to check if a user is signed in.

    • use useSession() to fech the session data
  4. You can also use the /api/auth/signout endpoint to sign out.

    • use signOut() to sign out

👩‍💻Api Reference

Auth page routes:

Effective Tools sharing

v0: (AI)generative UI tool: https://v0.dev/