Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Fullstack Nest, Next Reddit-like app with RESTful API for auth, subredits, commenting, posting and voting for posts.

License

Notifications You must be signed in to change notification settings

PoProstuWitold/reddit-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Clone

Fullstack Nest, Next Reddit-like app with API for auth, subredits, commenting, posting and voting for posts

Usage

0.

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'

With Docker

1. Run containers

docker compose up 

Without Docker

1. Change contents of DATABASE in env file

# DATABASE
DATABASE_HOST=
DATABASE_PORT=
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_DBNAME=

2. Install Server dependencies and run

cd server
npm install/pnpm install/yarn
nest start --watch

3. Install Client dependencies and run

cd client
npm install/pnpm install/yarn
next dev

FEATURES

  • Basic auth
  • Creating subreddits
  • Creating posts
  • Commenting
  • Voting on posts and comments

DISCLAIMER

Project is discountinued in favor of newer ones

License

ISC

About

Fullstack Nest, Next Reddit-like app with RESTful API for auth, subredits, commenting, posting and voting for posts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published