A platform for developers to connect. They can create their portofolio by adding their experience, education, skills and other important information of their professional career.
Users can also create small posts and like/dislike and comment on other posts.
Live link: Click here
# clone repository
https://github.com/RoshanSureen/dev-connector.git
# Install dependencies
cd dev-connector && npm install
# create a .env file in root of your project
touch .envIn the .env file create the below 2 enviroment varieables. Make sure it is exactly as shown below. No special charecters or spaces must be there.
DB_URL=YOUR_OWN_MONGO_URI
TOKEN_SECRET=YOUR_OWN_SECRET
To run the development server:
# the development server runs on port 3000
npm run devTo run production build:
# create code bundle
npm run build
# run production server
npm run prodIn the project a Procfile has also been provided. This file is used by Heroku.
You will need to install the heroku-cli
# Heroku-cli (paste link in browser)
https://devcenter.heroku.com/articles/heroku-cliAfer installing heroku-cli run the following commands in terminal
# login locally
heroku loginYou will be prompted to enter your email and password which is the same the email and password used when you sign up for Heroku
# create your app
heroku create
# set enviroment vareiables
heroku config:set DB_URL=YOUR_OWN_DB_URI
heroku config:set TOKEN_SECRET=YOUR_OWN_SECRETTry to keep your production DB different from development DB
# bundle code for production
npm run build
# deploy code to heroku
git push heroku master:master



