Fullstack Nest, Next Reddit-like app with API for auth, subredits, commenting, posting and voting for posts
Create .env
file in server
root directory and fill with following:
# DATABASE
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USER=admin
DATABASE_PASSWORD=admin
DATABASE_DBNAME=nest-next-reddit-postgres
# SERVER
PORT=5000
ORIGIN=http://localhost:3000
# JWT
JWT_ACCESS_TOKEN_SECRET=secret1
JWT_ACCESS_TOKEN_EXPIRATION_TIME='10m'
JWT_REFRESH_TOKEN_SECRET=secret2
JWT_REFRESH_TOKEN_EXPIRATION_TIME='30d'
docker compose up
# DATABASE
DATABASE_HOST=
DATABASE_PORT=
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_DBNAME=
cd server
npm install/pnpm install/yarn
nest start --watch
cd client
npm install/pnpm install/yarn
next dev
- Basic auth
- Creating subreddits
- Creating posts
- Commenting
- Voting on posts and comments
Project is discountinued in favor of newer ones