Skip to content

This Repo will have a golang grpc server which will expose protobuf api for the train ticket booking .

License

Notifications You must be signed in to change notification settings

AmitKannaujiya/GoTrainBookingGrpcServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Ticket Booking Server (GRPC API for Train Ticket Booking)

This Repo will have a golang grpc server which will expose protobuf api for the train ticket booking .

List of features

Generate Seats for Section

  • Add configurable no of seat for each section (A or B)

Purchase Ticket PurchaseTicket

  • Add Booking for User (firstName, lastName, Section A or B, Price, Source, Destination)
  • Store Booking history in memory

Generate Booking Receipt

  • Get Booking details against ReceiptId

Get List of Users for each sections

  • Send List of Users and booked seats section wise
  • Fetch and send details of User Seat mapping

Modify Seat of User

  • Modify the seat of user if it is available
  • Update the booking

Remove User from Train (Cancel Booking)

  • Modify the seat of user if it is available
  • Update the booking

Running Locally using Docker

cd <root path>
go run main.go

access site on: http://localhost:5001/

Documentation

TODO

  • Add tests for more cases
  • Add tests for helpers
  • Add documentation
  • Add Authentication
  • Update Logging

About

This Repo will have a golang grpc server which will expose protobuf api for the train ticket booking .

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages