Yjohn / cyf-hotel-db

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code Your Future DB Module Exercises

Introduction

This exercise involves implementing various aspects of a hotel booking system. It involves a variety of operations on the database to fetch, insert and update data.

The tasks build on your previous experience using SQL with SQLite and Node.js. The key components of the application are as follows:

  • index.js - sets up the application for use
  • server/class2.js - router for simple application logic and interaction with the database;
  • server/class3.js - routes for advanced application logic and interaction with the database;

In order to interact with the server we will be using Postman to perform the HTTP requests.

Installation

Install the dependencies using npm i.

Launch server using npm start and go to http://localhost:8080/

Database Schema

ERD

Instructions

In order to complete the exercises described in the syllabus, you will need to edit the code in /server/class2.js, generally guided by the TODO comments.

About


Languages

Language:HTML 48.8%Language:JavaScript 45.3%Language:CSS 6.0%