CRUD database for:
- User
- Product
- Category
- Variant
- Auth
- Transactions
- Open app's directory in CMD or Terminal
- Type npm install
- Make new file a called .env, set up first
- Turn on Web Server and MySQL can using Third-party tool like xampp, etc.
- Create a database with the name #nama_database, 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:3000/)
- You can see all the end point here
Open .env file on your favorite code editor, and copy paste this code below :
NODE_ENV=development
APP_URL=http://localhost:8080
APP_KEY=
APP_UPLOADS_ROUTE=/uploads
APP_UPDATE_ROUTE=/editprofile
APP_UPLOADS_PATH=assets/images
APP_TRANSACTION_PREFIX=CS
DB_HOST=localhost
DB_NAME=db_coffeeshop
DB_USER=root
DB_PASS=
<<<<<<< HEAD © Riki Rhenaldi
0c51f9bc4dac815bc03b7312d9dbb44084fed16e