Git Product home page Git Product logo

hotel-reservation-api's Introduction

Multi Tenant reservation-api

Description: A simple RESTful API for booking and reservation hotel rooms.
A Golang web-based restful api hotel reservation system, that acts a broker between hotels and customers.

Application architecture:
The architecture used in this program is multitenancy, for each new hotel(tenant), a new separate database is created, all of its tables are separate, and the information of each hotel(tenant) is stored separately in its own database.
This pattern uses a multi-tenant application with many databases, all being single-tenant databases. A new database is provisioned for each new tenant.

used technologies

  • PostgreSql
  • Rabbitmq
  • Redis
  • Minio
  • Docker
  • DockerCompose

How to run(with docker):

To run this program, you can easily use DockerCompose, all required dependencies such as Postgres, Redis, etc. are listed in the
docker-compose file.
First of all, install Docker and Docker Compose on your machine and after run the docer-compose up -d command, the program is executed, the default database It is made and also all the seeds are done.

How to run(without docker):

If for any reason you don't want to run the program with Docker and just want to run and compile the code, follow the steps below:

  • install postgresql on your machine
  • install rabbitmq on your machine
  • install redis on your machine
  • install minio on your machine
  • go to resorecess directory and override the config.yml with following steps:
    1. add your postgres port and ip address
    2. add your redis client port and ip address
    3. add your rabbitmq address
    4. add your minio conenction
    5. in the last step, go to the cmd directory and run the make build command to compile, you can also run the go run ./cmd/main.go command to execute application in application's root directory.

hotel-reservation-api's People

Contributors

rezaeskandarii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

phayazz

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.