This project is a my backend project, the name is Caffeshop App. Its main purpose is to make cafe or shop owner easier to checkout and manage datas in database. More about Express. 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 caffeshop, 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. http://127.0.0.1:3000/)
- 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_USER=root // Database user
DB_PASS= // Database password
DB_DB=rythz-pos // Database name
PORT=3000 // PORT
IP=127.0.0.1 // IP
URL=http://localhost:8080 //URL to your local website
USER= //Input your email here
PASS= //Input your email's password here
KEY=RYTHZPOS
Link Postman click here