Coder Social home page Coder Social logo

booking-platform's Introduction

table booking platform monorepo

architecture

development environment

apis

venue api

used to manage venue information on the booking platform

  1. Go to the venue_api lib directory.
  2. populate .env file from example
  3. ensure lib folder contains certs (see below)
  4. run make dev to run api and postgres instance in docker-compose

booking api

used to manage bookings on the platform

  1. Go to the booking_api lib directory.
  2. populate .env file from example
  3. ensure lib folder contains certs (see below)
  4. run command make postgres to create an instance of the booking database in docker-compose
  5. run command cargo run to start api locally

gateway api

graphql api used to receive requests from clients and forward them to gRPC apis

  1. Go to the gateway_api lib directory.
  2. populate .env file from example
  3. ensure lib folder contains certs (see below)
  4. run command make local to start api locally
certificate generation

APIs need a public and private key to communicate with each other. Run the following command to generate certificates. Place them in the individual API folders.

openssl req -x509 -out localhost.crt -keyout localhost.key \
  -newkey rsa:4096 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

user interfaces

booking ui

a front end client that allows users to make bookings

  1. Go to the booking_ui lib directory.
  2. Run make dev to install dependencies, generate graphql code and run user interface.

admin ui

a front end client that allows venue administrators to make service changes

  1. Go to the admin_ui lib directory.
  2. Run make dev to install dependencies, generate graphql code and run user interface.

booking-platform's People

Contributors

cobbinma avatar

Stargazers

 avatar  avatar

Watchers

 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.