This is a MERN stack project to connect users and showcase their professional profile and engage in discussion in the topics of their choice. It has follwing features:
-
Register user (Signup and Login)
-
Create profile (add experience, add education, add social links, general profile)
-
Edit profile and delete account
-
View profile of other users
-
Add, delete personal posts
-
Like, comment other user posts
Project is hosted on heroku. To explore the live version of project click on the link https://idevconnect.herokuapp.com/
- MongoDB => NoSQL Database
- ExpressJs => Web Framework for NodeJs
- ReactJs => JavaScript library for front end
- NodeJs => JavaScript runtime environment
client
=> contains Reactjs code for frontendconfig
=> contains keys and secret for connecting databasemodels
=> contains database modelsroutes
=> contains RESTful api/ end routes
To run the project on localhost follow the given steps in root directory
.
-
Create a new cluster at Mongodb atlas. For this follow this guide.
-
Connect the new cluster using this guide
-
Create the file
keys_dev.js
using format as given below inserver/config
directory.cd server/config && touch keys_dev.js
-
Write the following code in
keys_dev.js
and replace data inside quotation marks.module.exports = { mongoURI: "YOUR_MONGODB_DATABASE_URL", secretOrKey: "SOME_INSANELY_SECRET_KEY_OF_YOUR_CHOICE", //For JWT payload token };
-
Download Docker for your system from here
-
Inside root directory use the following command to run the project.
docker-compose up
- If you change any
docker-compose.yml
,nginx configuration
,package.json
file then use following command to build and run the images.docker-compose up --build
- Download git
- Download heroku-cli
- Follow the given guide