Simple, easy implementation of the private web API.
API build in Express.js and MySQL for bayue48/blanja-web
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/yae48/blanja-api.git
- Install NPM packages
This will install the dependencies inside
npm install
node_modules
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,
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.
- 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
For more info visit Postman
Blanja Client.
Distributed under the MIT License.