Skip to content

Rikirhenaldi/B22-Backend-Beginner

Repository files navigation

ExpressJS - Backend_CoffeeShop RESTfull API

About

CRUD database for:

  1. User
  2. Product
  3. Category
  4. Variant
  5. Auth
  6. Transactions

Built With

Express.js  v4.17.1 Node.js v14.17.3

Requirements

  1. NodeJs
  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
  4. Turn on Web Server and MySQL can using Third-party tool like xampp, etc.
  5. Create a database with the name #nama_database, 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:3000/)
  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 :

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=

License

<<<<<<< HEAD © Riki Rhenaldi

© Riki Rhenaldi

0c51f9bc4dac815bc03b7312d9dbb44084fed16e

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published