- you need docker installed and node.js 18xx.
- in case you going to run docker-compose up --build to build the project.
Explain how to set up the local development environment.
- Navigate to the
backend
directory. - Run
npm install
to install dependencies. - Set environment variables in a
.env
file based on the provided example. 4, for jwt secret key I used openssl rand -base64 32 to generate the key.
- Navigate to the
frontend
directory. - Run
npm install
to install dependencies.
- Ensure Docker is installed and running.
- From the project root, run
docker-compose up --build
.
- Run
npm start
inside thebackend
directory.
- Run
npm start
inside thefrontend
directory.
List the main API endpoints if your backend exposes an API.
Detail the environment variables needed for the project.
NODE_ENV
: Environment mode (e.g., development, production).PORT
: Server port (default: 5003).JWT_SECRET
: Secret key for JWT.MONGO_DB
: MongoDB URI.REACT_APP_API_URL
: URL for the React app to connect to the API.