Projects

MyHackount

MyHackount

Express

Redux

React

NodeJS

MongoDB

JWT

SASS

This is a social network for developers. It is a MERN stack app that includes authentication, profiles and forum posts.

Technologies used within this project

Backend:

  • NodeJS
  • MongoDB
  • Express
  • JWT

Frontend

  • ReactJS
  • SASS
  • Redux

Project setup

Backend:

Environment variable

# ./config/.env
PORT=     # enter the API port (by default is 5000)
APP_URL=http://localhost:3000
DB_USER_PASS=<username>:<password>
TOKEN_SECRET=     # enter a random secret token (exemple: "63e45d11c84d424")

Connect database

// ./config/db.js
/*
add your path URL to connect at your Mongo DataBase
for exemple :
*/
'mongodb+srv://' + process.env.DB_USER_PASS + '@cluster0.t023j84.mongodb.net/<dbname>'
// or
;('mongodb://localhost:27017/<dbname>')

Frontend

Environment variable

# ./app/.env
REACT_APP_API_URL=http://localhost:<API port>

Go to the folder data and adding the post.json and users.json to Mongo DataBase.

Run App

Backend

# ./(root_dir)
npm i
npm start

Frontend

cd app
# ./app
npm i
npm start

See other projects

E-mail-icon

Contact

You have a question ? Do not hesitate to contact me.