Skip to content

bakrisoft/nodejs_restapi

Repository files navigation

nodejs_restapi

NodeJS sample Rest API

This is very simple RestAPI that you can use as a start point and add your customization

Installation instructions

  1. Clone using git
    git clone https://github.com/bakrisoft/nodejs_restapi.git

  2. Open cmd or powersell within project folder to install required modules using npm
    npm i --save

  3. Restore MySQL database file named 'restapi.sql' into your MySQL server and modify the database config in 'shared/db.js' file to match your server

  4. Start the api using node command
    node server.js

This API contains 5 endpoints
- Get all users
Method: Get
URL: http://localhost:3500/users

Or simply you can import Postman collection from file 'SampleRestAPI.postman_collection.json'

Waiting for your suggestions

Releases

No releases published

Packages

No packages published