- https://reddit.ertu.codes
- To login, use NAME=admin, PASSWORD=password
-
To run this project, you need a postgresql server
-
Change the example.env filenames to .env
- Input your db info into the .env file in the server side
cd client
npm install
npm run start
cd ../server
npm install
npx prisma migrate dev
npm i -g ts-node // If you don't have ts-node(node typescript runner)
npx prisma db seed
npm run watch
CLIENT_URL=reddit.clientside.com // needed for cors
COOKIE_SECRET=doesntmatter
DATABASE_URL=postgresql connection string
HOST=0.0.0.0 // ???
JWT_SECRET=doesntmatter
REACT_APP_SERVER_URL=serverurl.com
- .env
DATABASE_URL=proddbstring
JWT_SECRET=sameasserver
npm run install
npx prisma migrate deploy
npm run seed-prod