A fullstack reddit clone made using Node JS, React JS + Typescript, and Mongo DB (MERN).
To see the live version, check here.
- React JS + Typescript
- Redux Toolkit
- Styled Components
- React Query
- Node JS
- Express
- Mongo DB (with Mongoose)
- JWT tokens for authentication
- Signup and Login
- HomeFeed (dedicated for both Loggedin users and anonymous users)
- Pre defined Communities
- Create, Read, and Delete Posts
- Create, Read, and Delete Comments
- Upvote and Downvote Posts
- Search Posts
- Sorting
- Filter Posts based on Community/User.
- JWT based auth (both accessToken and refreshToken)
In order to run this project on your computer, you must have the following technologies installed on your computer:
- Node JS and npm/yarn
- MongoDB
git cloneorDownload ZIPthis repohttps://github.com/the-coding-pie/myforum.git- Now
cdinto the root directory (ie, myforum):
cd myforum- Install server dependencies
cd server
yarn install- Install client dependencies
cd client
yarn install- Start MongoDB on your computer (on a new Terminal type the following)
mongod- Create
.envfile directly insideserverfolder and add these values (replace corresponding values):
PORT=8000
MONGO_URI=your_value_here
ACCESS_TOKEN_SECRET=some_random_value_here
REFRESH_TOKEN_SECRET=some_random_value_here
- Start the server
cd server
yarn start- Start the client
cd client
yarn start- Visit http://localhost:3000
