SehejBakshi / Memories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memories

An app for memories to live forever!
Built using MERN stack.

Setup Instructions

1. For backend

cd server
npm i

2. For frontend

cd client
npm i

3. For database

Create a shared cluster on MongoDB Altas and use the connection key provided to connect to the database in the server/index.js file using Mongoose. Or create a database locally and connect with backend.

4. Add Credentials

Before starting the web server, make sure to add secret key to server/middleware/auth.js file for authentication.

Run App

To run the app, follow the given commands:

Start Backend Server

To start the backend server you need to run the following sequence of commands.

cd server 
npm start

Start Frontend Server

To view the frontend you need to run the following sequence of commands.

cd client 
npm start

View the app on localhost:3000. You can also view the api at localhost:5000 and localhost:5000/posts.

About


Languages

Language:JavaScript 98.7%Language:HTML 1.1%Language:Shell 0.2%