Skip to content

nurf21/Cazzy-API-Express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExpressJS - Cazzy RESTfull API

This project is a backend to my project, Cazzy POS App. Its main purpose is to make cafe or shop owner easier to checkout and manage datas in database. More about Express

Built With

Express.js Node.js

Requirements

  1. Node Js
  2. Node_modules
  3. Postman
  4. Web Server (ex. localhost)

How to run the app ?

  1. Open app's directory in CMD or Terminal
  2. Type npm install
  3. Make new file a called .env, set up first here
  4. Turn on Web Server and MySQL can using Third-party tool like xampp, etc.
  5. Create a database with the name pos_app, and Import file sql to phpmyadmin
  6. Open Postman desktop application or Chrome web app extension that has installed before
  7. Choose HTTP Method and enter request url.(ex. localhost:3001/)
  8. You can see all the end point here

Set up .env file

Open .env file on your favorite code editor, and copy paste this code below :

DB_HOST=localhost // Database host
DB_PASS=          // Database password
DB_USER=root      // Database user
DB_NAME=pos_app   // Database name
PORT=3001         // Port where express is running
IP=127.0.0.1      // IP where express is running

Postman Documentation

You can see all the requests here

Releases

No releases published

Packages

No packages published