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