Table of Contents
A simple web application that simulate the cashier point of sale system.
- NodeJS
- Any code editor e.g. VSC, Atom
-
Clone the repo
git clone https://github.com/KhairulAminShabudin/Cashier-POS-System
-
Download and Install the latest version of PostgreSQL
-
Install all dependencies by running the code below in your VS Code terminal
npm run install-all
-
Create
.env
file in root folder and store the following informationsPORT=YOUR DESIRED RUN PORT DATABASE_URL="postgresql://YOUR_USERNAME:YOUR_PASSWORD@localhost:5432/DATABASE_NAME?schema=SCHEMA_NAME"
-
Setup for Prisma
- Run the following command in your VS Code terminal
npx prisma migrate dev --name init
- [Optional] Open Prisma Studio by running the following in the terminal
npx prisma studio
-
Start the backend server
- Run the following in VS Code terminal
npm start
-
Launch web application
- Go to the
client
directory in by running the following command in the terminal:
cd client
- Launch web server
npm start
- Go to the
Distributed under the MIT License. See LICENSE.txt
for more information.
Khairul Amin Shabudin - khairulaminshabudin@gmail.com
Project Link: Cashier POS System