npm install
- This project uses Redis for the analytics on each post. You'll need to provide these 3 variables: You can adjust the configuration if needed
REDIS_PASSWORD=""
REDIS_HOST=""
REDIS_PORT=""
- To generate the
NEXTAUTH_SECRET
variable, just type the below command and copy the output string.
openssl rand -hex 32
-
To set up authentication, you're not forced to follow my configuration. You can remove some providers, add others... However, if you want to setup Github, Discord and Google, make sure to read this useful blog post (This cover the Google and Github providers).
To set up Discord, go here, then create a new application. Once created, go in the
OAuth2 > General
tab. You will see a client ID and a client secret appear. You may need to click on theReset Secret
to make your secret visible. -
The Prisma schema has been built for a CockroachDB database, but you are free to change this (Don't forget to make the appropriate changes in the schema).
npm run dev
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!