The project is build with a react client application, an express server side application and mongodb database !!! check express setup for .env config !!!
The express server features five public routes:
And four authenticated routes :
The frontend application (react) and the backend application (express) run on different ports
react on : localhost:3000 express on : localhost:4000
We used the Cors library on the express server to provide the communication between the two ports
Run : npm install in "back" directory to install all dependencies
Run : node app.js in "back" directory to run the server
**Add the following lines to back/config/.env : SECRET_KEY=9DAD755F3DC77CFFA41956DED9638 MONGODB_URI=mongodb+srv://sena21ouarem:[email protected]/?retryWrites=true&w=majority
--!!!! strictly for developement needs !!!!--
Run : npm install in "front" directory to install all dependencies
Run : npm start in "front" directory to run react application