pranjal7842 / REST-Using-Node

This is a Node based app to create REST API and swagger documentation. The app uses MariaDB and AWS Lambda function for backend.

Home Page:https://pranjal7842.github.io/REST-Using-Node

Repository from Github https://github.compranjal7842/REST-Using-NodeRepository from Github https://github.compranjal7842/REST-Using-Node

REST Using Node

This is a Node based app to create REST API and swagger documentation. The app uses MariaDB and AWS Lambda function for backend.

Setup

  • Install MariaDB: Download Link
  • Open Console and navigate to the bin folder of MariaDB installation
  • Execute below commands:
    $ curl https://www.w3resource.com/sql/sample-database-of-sql-in-mysql-format.txt --output db.sql
    $ mysql -u root -p
    $ CREATE DATABASE sample;
    $ exit;
    $ mysql -u root -p sample < db.sql
    
  • Clone the repo
  • Execute below command to install node packages: $ npm install

Starting Server

Starting Maria DB server

  • Open Console and navigate to the bin folder of MariaDB installation
  • Execute below command to start Maria DB server $ mysql -u root -p sample

Starting Node server

  • Open Console and navigate to local repo
  • Execute below command to start Node server $ node server.js

Testing the REST APIs

Once the Node server has started use this Swagger Link to test.

About

This is a Node based app to create REST API and swagger documentation. The app uses MariaDB and AWS Lambda function for backend.

https://pranjal7842.github.io/REST-Using-Node


Languages

Language:JavaScript 100.0%