Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 2.45 KB

README_EN.md

File metadata and controls

83 lines (55 loc) · 2.45 KB

Pizzeria - FRONT part

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

Readme lietuviškai

Table of Contents

Introduction

This remote repository represents pizza restaurant's frontend REACT server. For the SPRING REST backend, you can click this link.

Creators

This project was done by 3 contributors(one had two accounts😂):

Launching frontend server

Before you continue, make sure you have at least Node.js v20.4.

Getting the repository

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.

Launching from terminal

To run the project in the code editor or from a terminal, go to the project folder and enter the following commands:

  1. Install the packages specified in the package.json file:
npm install
  1. Run the project after installing the packages:
npm start

Launching with Docker

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:

  1. Create an image
docker build -t myapp:v1 .
  1. 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