Skip to content

sanchir2011/nextjs-starter

Repository files navigation

Next.js Starter Kit by Sanchir Enkhbold

version 1.1

  • Next.js v14.2.6
  • Next Auth v4.24.7
  • React v18
  • Headless UI v2.1.2
  • Framer motion v11.3.29
  • Lucide Icon v0.429.0
  • Sonner Toast v1.5.0

Visit to my portfolio for more: https://sanchir.dev

What's included?

  • With Tailwind CSS, you can create an amazing-looking website.
  • Beautiful toast notifications by sonner.
  • Third party auth: Google Sign in (soon will add more).
  • Pre-made authorization pages that include: Login, Register, Logout, Forgot Password, Reset Password, Verify Email.
  • Customized 404 page.
  • Everything is in dark mode, which looks stunning 🤩.

Installation guide:

  1. Clone this repository to your folder: git clone https://github.com/sanchir2011/nextjs-starter.git my-web
  2. Go to the folder where you cloned: cd my-web
  3. Install all dependencies by running npm install
  4. Create .env file for development: cp .env.example .env
  5. Edit the created .env file:
  6. Replace NEXTAUTH_SECRET variable with random hex string. You can do this by running openssl rand -hex 64. It will generate you a secret then you can replace it.
  7. This starter kit comes with Google Sign In feature. So, you have to create a Google OAuth credentials by following these steps. When you created your credentials just replace on GOOGLE_ID and GOOGLE_SECRET.
  8. Then replace your development url on NEXT_URL and backend url on BACKEND_URL. For example: if your next.js is running on port 3010 just change it to http://localhost:3010.
  9. Finally, If you are using any buckets (Google Storage Bucket, etc.), please provide your url on NEXT_PUBLIC_BUCKET.
  10. Now you are safe to run npm run dev to start your Next.js.

Congratulations 🎉 You just created your Next.js project 😊.

If you liked it, please leave a star ⭐️. Thanks!

About

Next.js starter kit by Sanchir Enkhbold

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published