Skip to content

palaparthi/booking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booking

This project provides API for order management, using Elixir, GraphQL(Absinthe), PostgreSQL.

Steps to run the project

  • Install docker and run docker-compose build
  • Run docker-compose up
  • Visit localhost:4040/api from your browser after building

Steps to run the tests

Install Elixir, PostgreSQL and run mix test

Key Features

  • All mutations are atomic
  • All IDs are UUIDs
  • Query to fetch all orders
  • Mutation to create an order
  • Mutation to apply a payment to an order
  • Mutation to order and pay in one go
  • Subscriptions for all the above mutations

TODOS

  • Make mutations idempotent i.e if the payment is submitted twice, charge only once.
  • Instead of preloading paymentsApplied, use Dataloader/Batching to load lazily.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published