/User-coin-API

API in Node.js with Swagger documentation. Server is created using express and frontend is using SwaggerUI.

Primary LanguageJavaScript

User-coin-API

API in node.js with Swagger documentation. Server is created using Express with lowdb as the database. API was built to OpenAPI / Swagger Specifications Ver 3.0.3 with documentation done in YAML (in the users.js file).

I built the API in Node.js using Express as the main web framework and lowdb as the database. I decided to use lowb instead of a relational database like MySQL or PostgreSQL for demonstration purposes. To execute and test the API, please follow these steps:

  1. Download the repo to your computer locally.
  2. Unzip the files into any folder.
  3. Go to the directory of the folder "User-coin-API" in terminal or windows CLI
  4. Execute the index.js file with "node index.js"

Directory example

  1. Go to your browser and type in the address "http://localhost:4000/coin-user-api"

Directory example