Skip to content

Latest commit

 

History

History
89 lines (68 loc) · 3.35 KB

README.md

File metadata and controls

89 lines (68 loc) · 3.35 KB

Introduction

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/

Snapshots

Tech Stack

  • MongoDB => NoSQL Database
  • ExpressJs => Web Framework for NodeJs
  • ReactJs => JavaScript library for front end
  • NodeJs => JavaScript runtime environment

Project Architecture

  • client => contains Reactjs code for frontend
  • config => contains keys and secret for connecting database
  • models => contains database models
  • routes => contains RESTful api/ end routes

Run on localhost using docker

To run the project on localhost follow the given steps in root directory.

  1. Create a new cluster at Mongodb atlas. For this follow this guide.

  2. Connect the new cluster using this guide

  3. Create the file keys_dev.js using format as given below in server/config directory.

    cd server/config && touch keys_dev.js
  4. 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
    };
  5. Download Docker for your system from here

  6. Inside root directory use the following command to run the project.

    docker-compose up

Other Instructions

  1. 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

Deploy on Heroku