Clone the project
git clone https://github.com/NightClover-code/mini-reddit.gitGo to the project directory
cd mini-redditRemove remote origin
git remote remove originInstall dependencies
yarn installAdd Environment Variables
Check out the env variables in the .env.example file.
Make sure you name your env file .env.local
-
DATABASE_URLis a connection string to a local PostgreSQL database, I run mine using Docker. -
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETcan be acquired by creating a new GitHub application through: https://github.com/settings/applications/new. -
AUTH_SECRETis a random string.
Start the server
yarn dev