GithubHelp home page GithubHelp logo

chrismalherbe / limehome-bookings Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akshayjoyinfo/limehome-bookings

0.0 0.0 0.0 2.7 MB

Limehome bookings API

Shell 0.90% JavaScript 0.94% TypeScript 98.12% Procfile 0.03%

limehome-bookings's Introduction

LimeHome Bookings

1. LimeHome Bookings API

  • Get the list of hotels around a specific location
  • Create a booking for a given hotel on specific dates for a specific guest
  • List the bookings in a given hotel

Built With

  • Nest Js
  • TypeScript
  • Postgres + Postgis
  • Compodoc
  • Jest

2. Diagrams

2.1 Architecture Diagram

2.2 ER Diagram

image

2.3 API Components Diagram

image

2.4 NEST JS Modules Dependencies

image

2.5 Deployed to Heroku

trigger: when new commits merged to master

image

3. Build & Test

  1. Clone this repo
  2. Setup Postgres and along with Extensions
POSTGRES: 14
Extensions: 

cube          | 1.5   | data type for multidimensional cubes
earthdistance | 1.1   | calculate great-circle distances on the surface of the Earth
postgis       | 3.2.2 | PostGIS geometry and geography spatial types and functions

  1. Creaate Database limehomebookings , or make sure .env DB_URL should be properly updated

  2. Build and install depdendencies

npm install

  1. To Build & Run in LOCAL
npm run build

npm run start:dev
  1. To run tests once run the tests there will be coverage & coverage-e2e foldet will be published
npm run test
npm run test:e2e

4. Live Demo / Documentation

CompoDoc Documentation: https://akshayjoyinfo.github.io/limehome-bookings/

API: https://limehome-bookings.herokuapp.com/docs

5. Coverage Report

API Unit & E2E Coverage Reports

5.1 Unit Tests

image

5.2 E2E Tests

image

limehome-bookings's People

Contributors

codeakshayjoy avatar akshayjoyinfo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.