This is a simple Restaurant Order Web App build using React.js and Node.js. See fronend to learn more features, component design, and backend to learn more API specification.
- Install Node.js and npm v18.10.0 (npm 9.5.1) or higher
or
On your local machine with node.js installed, run a API server by the following commands
cd backend
npm install
npm start
or, to run a API server on docker, run the folloing commands
docker-compose up --build -d
docker exec -it backend sh
npm install
npm start
The dev server should be listening on http://localhost:3000.
On another terminal, run the app with the following commands.
cd frontend
npm install
npm start
or, to run an app on docker, run the folloing commands
docker exec -it frontend sh
npm install
npm start
The app should be accessible on http://localhost:8080 on your browser.
For docker, make the container down when you leave.
docker-compose down