- Authentication using JWT - Suggested Tutorial
- Profile Page
- See Profiles
- Explore Posts
- Add Post
- Update Profile Picture
- Follow / unfollow
- Like / unline
- Home page (showing the posts of followed users)
- Private / public account
Step 1: Initial Setup
$ cd <project-destination>
$ git clone https://github.com/theneelshah/sastagram.git
Step 2: Setting up environment variables Create a .env file in the home directory with the following variables:
- MONGOURI=<_Your mongodb database uri>
- JWT*SECRET=<_Random string used to encrypt your JWT token for authentication. Ex: MY_SECRET_AND_ENCRYPTED_STRING*>
- JWT*EXPIRES_IN=<_Time after your token expires. Ex: 2d *>
- NODE_ENV=<*development / production*>
Step 3: Installing dependencies
$ npm install
$ cd client
$ npm install
Step 4: You're ready to go! (Make sure nodemon is installed globally / on your project)
$ npm start
$ cd client
$ npm start
Client runs on port 3000 & server on port 4546