Skip to content

teamNgabuburide/ngabuburide-be

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

display-documentation RAZYR FURNITURE

NodeJS Express.js Postgres


Introduction

RAZYR FURNITURE is a backend application specifically designed to support the management and operation of a furniture business. This application provides various features that enable users to efficiently manage inventory, customers, orders and sales.


𓆙 Table of Contents

𓆙 Windows Installation

First of all, you need to install Git & NodeJS. Then open your git bash, and follow this:

$ git clone https://github.com/teamNgabuburide/ngabuburide-be
$ cd ngabuburide-be
$ code .
$ npm i

𓆙 Linux Installation

$ apt-get update
$ apt-get install git-all
$ apt-get install nodejs-current
$ git clone https://github.com/teamNgabuburide/ngabuburide-be
$ cd ngabuburide-be
$ code .
$ npm i

𓆙 How to run

  1. Install file using WINDOWS OR LINUX

  2. Add .env file at root folder, and add following

DB_HOST = "YOUR HOST"
DB_NAME = "YOUR DB NAME"
DB_PORT = "YOUR DB PORT"
DB_USER = "YOUR DB USER"
DB_PWD = "YOUR DB PASSWORD"
SERVER_PORT = "YOUR LOCALHOST"

JWT_SECRET = "YOUR SECRET JWT"

CLOUD_NAME = "YOUR CLOUDNAME"
CLOUD_KEY = "YOUR KEY CLOUD"
CLOUD_SECRET = "YOUR KEY SECRET CLOUD "
  1. Starting application
$ npm run dev

𓆙 Route

Endpoint Method Info Remark
/auth POST Auth Login
/auth/logout PATCH Auth Logout
/auth/register POST Auth Register
/auth PATCH User Change Password
/auth/otp PATCH User get otp
/auth/forgot PATCH User fotgot password
/profile GET Profile Get Profile
/profile PATCH Profile Edit Profile
/transactions/:id GET Transactions History Transaction
/transactions/add POST Transactions Create Transaction
/product/all GET Products Get all product
/product/add POST Products Create product
/product/:id GET Products Get detail product
/product/:productId PATCH Products Edit product
/product/delete/:id DELETE Products Delete product
/product/categories GET Products Get categories
/product/categories/count GET Products Get categories count
/product/edit-images/:id PATCH Products Edit Images Product
/favorit GET Favorite Get all Favorite
/favorite POST Favorite Create Favorite
/favorite/:id DELETE Favorite Delete Favorite
/promo/discount GET Promo Get Promo
/promo/:id GET Promo Get Detail promo
/promo/add POST Promo Create promo
/promo/edit/:id PATCH Promo Edit Promo
/promo/delete/:id DELETE Promo Delete Promo

𓆙 Documentation Postman

Click here POSTMAN

Download json POSTMAN



𓆙 Related-Project

𓆙 Contributor


Redha Definto

Afif Buchori

Abdul Latif Rosid

Yanu Setiawan

Zikri Aulia

THANK FOR YOUR ATTENTION