Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 1.51 KB

README.md

File metadata and controls

86 lines (58 loc) · 1.51 KB

Restaurant Order App

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.

Dev environment quick start

Prerequisites

or

Run a local API server

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.

Run a frontend app

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