This project was bootstrapped with Create React App.
Run npm i create-react-app -g
to install
Frontend for pizza project. You should deploy it after deploying backend.
clone this repository:
$ git clone https://github.com/HuHguZ/pizza-project-frontend.git
- Node.js
$ npm install
Configure .env
file. File structure:
PORT=3000
REACT_APP_SERVER_URL=http://192.168.100.3:5000
REACT_APP_SERVER_URL
must consider the path to the server from the client.
Run dev server:
$ npm start
create production build: $ npm run build
You may serve it with a static server:
$ npm i -g serve
$ serve -s build
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration