Frontend:
Backend:
Pull this repo and create one .env
file and Add NODE_MODE, MONGO_URL and JWT_SECRET to your .env
file. And also change frontend package.json file proxy node_api to localhost
# Install dependencies for server
npm install
# Install dependencies for forntend
cd frontend
npm install
# Run the client & server with concurrently
npm run dev
# Run the server only
nodemon server.js or npm run server
# Run the frontend only
npm start
# Server runs on http://localhost:5000 and client on http://localhost:3000
Pull this repo and create one .env
file and Add MONGO_URL, JWT_SECRET and REFRESH_TOKEN_SECRET to your .env
file. And also change frontend package.json file proxy localhost to node_api
# start container
docker compose up
# start services with detached mode
docker compose up -d
# stop all contaners and remove images, volumes
docker compose down