Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 749 Bytes

File metadata and controls

43 lines (27 loc) · 749 Bytes

Running Locally 🖥️

Clone the project

git clone https://github.com/NightClover-code/mini-reddit.git

Go to the project directory

cd mini-reddit

Remove remote origin

git remote remove origin

Install dependencies

yarn install

Add Environment Variables

Check out the env variables in the .env.example file.

Make sure you name your env file .env.local

  • DATABASE_URL is a connection string to a local PostgreSQL database, I run mine using Docker.

  • GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET can be acquired by creating a new GitHub application through: https://github.com/settings/applications/new.

  • AUTH_SECRET is a random string.

Start the server

yarn dev