Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

mbayue/blanja-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blanja-api

Simple, easy implementation of the private web API.

About The Project

API build in Express.js and MySQL for bayue48/blanja-web

Prerequisites

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/yae48/blanja-api.git
  2. Install NPM packages
    npm install
    This will install the dependencies inside node_modules

MySQL configuration

Please create database and make the changes in the /src/config/mySQL.js file.

host: YOUR_HOSTNAME,
user: YOUR_DBUSERNAME,
password: YOUR_DBPASSWORD,
database: YOUR_DBNAME,

Usage

node index OR nodemon start OR npm start

Runs the app in the development mode.
Open http://yourhostname:8000/api/v2/ to view it in the browser.

Endpoint

  • Get All Products
GET
/api/v2/products
  • Get Single Products
GET
/api/v2/products/:id
  • Add New Products
POST
/api/v2/products
  • Edit Existing Products
PATCH
/api/v2/products/:id
  • Delete Products
DELETE
/api/v2/products/:id

Documentation

For more info visit Postman

Related Project

Blanja Client.

License

Distributed under the MIT License.

About

Simple, easy implementation of the private web API.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors