MyHackount
![MyHackount](/_astro/myhackount-hero_Z1sIcRO.png)
Express
Redux
React
NodeJS
MongoDB
JWT
SASS
Ce projet est un réseau social pour les développeurs. Il s’agit d’une application MERN qui comprend l’authentification, profils, publications et forums.
Technologies utilisées 🛠️
Backend:
- NodeJS 🟩
- Mongoose 🍃
- Express 🚂
- JWT 🔑
Frontend
- React ⚛️
- React Router 🚦
- SASS 💄
- Redux 🔄
Installation 📥
Backend:
Variables d’environnement
# ./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")
Connexion à la base de données
// ./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
Variables d’environnement
# ./app/.env
REACT_APP_API_URL=http://localhost:<API port>
Aller dans le dosier data
et ajouter post.json
et users.json
a votre base de données MongoDB.
Lancer l’application 🏁
Backend
# ./(root_dir)
npm i
npm start
Frontend
cd app
# ./app
npm i
npm start
Voir d'autres projets
![E-mail-icon](/_astro/contact.82edbfca_Z8TGVP.png)
Contact
Vous avez une question ? N'hésitez pas à me contacter.