MyHackount
Express
Redux
React
Node
MongoDB
JWT
SASS
This is a social network for developers. It is a MERN stack app that includes authentication, profiles and forum posts.
Tech stack π οΈ
Backend:
- NodeJS π©
- Mongoose π
- Express π
- JWT π
Frontend
- React βοΈ
- React Router π¦
- SASS π
- Redux π
Installation π₯
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
Contact
You have a question ? Do not hesitate to contact me.