-
N2PMT is a Full-Stack Template for developers that want to use NextJs, Next-Auth, Prisma, MongoDB, TailwindCSS, and Redux as their tech stack.
-
N2PMT is an open-source project that every developer can contribute to making it better.
Have any idea? Contribute!
- Firstly, clone this repo to your local device
git clone https://github.com/vlhsmylv/n2pmt.git
- Go to the directory and run the following command
npm install
-
Wait for all dependencies to be installed
-
Get your MongoDB connection string from MongoDB Atlas
DATABASE_URL="MONGODB_DB_CONNECTION_STR"
- Edit your Prisma schema and write the following command in your terminal
npx prisma generate
- Firstly, go to .env file and add required environment variables
NEXTAUTH_SECRET="YOUR_SECRET_KEY"
NEXTAUTH_URL="YOUR_URL"
NEXTAUTH_SECRET
- Your Next-Auth secret that needs to be secure. You can generate it by following the command
openssl rand hex -32
If you don't have openssl then use online tools as www.lastpass.com to get secure password
NEXTAUTH_URL
- Your project's local or public URL. If your project is in development mode then usehttp://localhost:PORT
, but if your project is in production mode, then add your project's public URL
-
Follow steps in How to use it?
-
Make changes
-
Push it as a new branch!