This project is a basic setup for a React.js application using Vite with a client-side folder and a server-side folder.
Rabii Ababsa
Agourram Mohammed Ali
Ahmed Bachir El Mahmoudi
Make sure you have Node.js and npm installed on your machine.
- Node.js: Download here
- npm: (Installed with Node.js)
- Clone the repository:
git clone https://github.com/Noryuxd/microservices-project
- Navigate to the project folder
cd microservices-project
- Change the .env.example file to .env and configure your variables : :
MONGODB_USERNAME="your_username"
MONGODB_PASSWORD="your_password"
- Install dependencies for client :
# Install client dependencies
cd client
npm install
# Run the react application server
npm run dev
- Install server dependencies for each microservice
# Install server dependencies for utilisateur
cd ../server/utilisateur
npm install
# Run the server
nodemon index.js
# Install server dependencies for produit
cd ../server/produit
npm install
# Run the server
nodemon index.js
# Install server dependencies for commande
cd ../server/commande
npm install
# Run the server
nodemon index.js