Note that the project where you are reading this is only the front-end part!
you will also need the back-end part. Link is below this note ↓
Backend
This remote repository represents pizza restaurant's frontend REACT server. For the SPRING REST backend, you can click this link.
This project was done by 3 contributors(one had two accounts😂):
Before you continue, make sure you have at least Node.js v20.4.
To get this repository, just got to the local folder where you would like to store it and run the git clone command in your terminal:
git clone https://github.com/Vlinkus/BaigiamasisDarbas_PicerijaFront.git
There are also many more methods to acquire this project. In the project's GitHub repository, press the "code" button for additional options.
After a quick installation, you should be good to go with the code editor of your choice.
To run the project in the code editor or from a terminal, go to the project folder and enter the following commands:
- Install the packages specified in the
package.json
file:
npm install
- Run the project after installing the packages:
npm start
The front-end of this project is "dockerized", which allows the project to be deployed on a server. Make sure your machine has Docker of at least v24.0.2 version.
In the folder of your project, type these commands in your terminal:
- Create an image
docker build -t myapp:v1 .
- Run a new container with volume
docker run --name myapp_c_nodemon -p 3000:3000 --rm -v C:\...\BaigiamasisDarbas_PicerijaFront:app/ -v /app/node_modules myapp:nodemon