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/Kheman9862/DeveloperHub.git
# Install dependencies
cd DeveloperHub && npm install
# create a keys_dev.js file in `./config/` of your project
touch keys_dev.js
In the keys_dev.js file create the below 2 enviroment varieables. Make sure you create mongo account and get the MONGO_URI.
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 dev
To run production build:
# create code bundle
npm run build
# run production server
npm run prod
You will need to install the heroku-cli
# Heroku-cli (paste link in browser)
https://devcenter.heroku.com/articles/heroku-cli
Afer installing heroku-cli run the following commands in terminal
# login locally
heroku login
You 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_SECRET
Try 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