This is a Node based app to create REST API and swagger documentation. The app uses MariaDB and AWS Lambda function for backend.
- 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
- Open Console and navigate to the bin folder of MariaDB installation
- Execute below command to start Maria DB server
$ mysql -u root -p sample
- Open Console and navigate to local repo
- Execute below command to start Node server
$ node server.js
Once the Node server has started use this Swagger Link to test.