Skip to content

jjulianto/cashier-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cashier App

Restaurant website built with React JS.

Table of Contents

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

These are list of things you need to have before you use the project and how to install them.

  • Node.js
    Download the Node.js installer here
    Run the installer
  • Text Editor
    You can choose any text editor that suits you the most, but I recomend using Visual Studio Code
    Download the VSCode installer here
    Run the installer
  • NPM
    Download npm in Command Line Interface by typing the command :
npm install npm@latest -g
  • JSON Server
    Download JSON Server in Command Line Interface by typing the command :
npm install -g json-server

Installation

  1. Clone the repo
git clone https://github.com/jjulianto/cashier-app.git
  1. Change current directory to this repository folder
cd cashier-app
  1. Install dependencies
npm install
  1. Run the project

    • Development mode

      1. Run the server

        npm run start
        
      2. Run the API

        npm run api
        
    • Production mode

      npm run build
      

Usage

  • Base URL : http://localhost:3000/
  • URL API : http://localhost:3004/

API Endpoint

Endpoint Description Parameter Method
/ Only the start page shows basic information No GET
/categories To display products by category No GET
/products To display the entire food list No GET
/keranjangs To display the food that has successfully entered the cart No GET
/pesanans To display the food that has been successfully ordered No GET

Author

Julianto - Github

License

About

Restaurant website built with React JS and Fake API (JSON-Server)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published