A reddit clone using the MERN stack.
I built this by following this wonderful tutorial.
- Run
npm install
inside the/client
and/server
folders - Create an
.env
file under the/server
folder and set 2 environment variables:PORT = 5000
andCONNECTION_URL = <YOUR_CONNECTION_URL>
- Example connection URL =
mongodb+srv://<USERNAME>:<PASSWORD>@cluster0.bccoe.mongodb.net/<DB_NAME>?retryWrites=true&w=majority
- Example connection URL =
- Run
npm start
inside the/server
folder - Run
npm start
inside the/client
folder