Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

manikandanraji/instaclone-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instaclone Backend

NOTE: As of 10-06-2022 19:52 IST, I am archiving this repository. It was fun while it lasted.

Instagram clone using MERN stack

This is the backend repo built with Express and MongoDB. If you looking for the frontend repo, click here

Running Locally

At the root of the project, you should have a .env with the following contents

JWT_SECRET=<yoursupersecret>
JWT_EXPIRE=30d // or anything you prefer
MONGOURI=<your_mongodb_connection_uri>

Then run npm i && npm run dev to start the development server

Deploying the backend to heroku

First create an heroku account and install the heroku cli globally and login

npm i -g heroku
heroku login

Once logged in, create a new heroku application and push it to the remote 'heroku'

heroku create
git push heroku master

Then we need to manually setup the environmental variables using the heroku dashboard

UI

Home

Home

Explore

Explore

Followers

Followers

Profile

Profile

Edit Profile

Edit Profile

New Post

New Post

About

Instagram clone using MERN stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published