/RESTFUL-API-for-online-bookstore

Main repository for CEN4010 Summer B Group 4 project.

Primary LanguageJavaScript

RESTFUL API for online bookstore

Main repository for CEN4010 Summer B Group 4 project.

This is a RESTFUL API Service to support an online web application bookstore which targets a particular niche in technology.

We implemented our API using Postgres SQL, NODE.JS, and Express.JS.

Steps to completion:

  1. Install PostgreSQL via https://www.postgresql.org/download/ - the password you use will only be for yourself
  2. Install Visual Studio Code via https://code.visualstudio.com/download 3) Install node.js' express framework and postgresql-node by calling "npm i express pg" in the terminal
  3. Create workspace for Visual Studio
  4. Pull code from this repo into that folder
  5. Create your own config.js by following the format in config.format.js
  6. Reference https://blog.logrocket.com/nodejs-expressjs-postgresql-crud-rest-api-example/
  7. Create your queries -> create a new js file 'queries.js' -> follow queries.example.js
  8. Create your endpoints in index.js