/Backend-Kebonid

Kebon.id is a backend for Kebon.id frontend application. Built with NodeJs using the ExpressJs Framework.

Primary LanguageJavaScript

Backend - Kebon.id

Kebon.id is a backend for Kebon.id frontend application. Built with NodeJs using the ExpressJs Framework. Express.js is a web application framework for Node.js. More about Express

Built With

Express.js Node.js

Requirements

  1. Node Js
  2. Postman
  3. 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 note, and Import file note.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.
  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=[your_database_host]
DB_PORT=[your_database_port]
DB_USER=[your_database_username]
DB_PASS=[your_database_pass]
DB_NAME=kebon_id

EMAIL=[email_for_send_forgot_password_otp]
EMAIL_PASS=[your_email_password]

BASE_URL=http://localhost:8080/
PORT=8080

SECRET=[jwt_secret_key]

End Point

1. Auth

  • POST /api/v1/auth/register
  • POST /api/v1/auth/login
  • POST /api/v1/auth/forgot
  • POST /api/v1/auth/reset
  • PUT /api/v1/auth/update

2. Cart

  • POST /api/v1/cart/
  • GET /api/v1/cart/:id
  • DELETE /api/v1/cart/:id
  • PUT /api/v1/cart/:id

3. Customers

  • PUT /api/v1/customers/:id
  • PUT /api/v1/customers/editPhoto/:id
  • GET /api/v1/customers/:id

4. Message

  • GET /api/v1/message/:id
  • POST /api/v1/message/

5. Product

  • GET /api/v1/product/
  • GET /api/v1/product/:id
  • POST /api/v1/product/
  • PATCH /api/v1/product/:id
  • DELETE /api/v1/product/:id

6. Store

  • GET /api/v1/store/
  • GET /api/v1/store/:id
  • POST /api/v1/store/
  • PATCH /api/v1/store/:id
  • DELETE /api/v1/store/:id

7. Transaction

  • GET /api/v1/transaction/:id
  • GET /api/v1/transaction/latest/:id
  • POST /api/v1/transaction/
  • DELETE /api/v1/transaction/:id

8. Wishlist

  • POST /api/v1/wishlist/
  • GET /api/v1/wishlist/:id
  • GET /api/v1/wishlist/
  • DELETE /api/v1/wishlist/:id

Related Project

Contributors

Deny Kurniawan
Deny Kurniawan
Hapid Moch Jamil
Hapid Moch Jamil
Nur Ihsan
Nur Ihsan
Alfatah Hidayat
Alfatah Hidayat
Vika Vitaloka P
Vika Vitaloka P