flight_booking_api

command module
v0.0.0-...-b1fe86a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

Flight Booking API

Written in Go Database: Postgresql

Deploy application

Step 1: Generate Dummy flight data in a flights.csv file (optional)

go run dummydatagenerator.go 

Step 2: Set env variables. for example,

export DB_PASSWORD=fli7g1ht2api129 \
export DB_NAME=flightapi \
export DB_USER=flightapiuser \
export DB_HOST=postgres \
export DB_PORT=5432

Docker deployment

docker-compose up -d

*This comprises the application, postgres and dataloader container

Application is available at <"your ip">:9000 | localhost:9000

Api documentation

  1. /api/flight docs
  2. /api/passenger docs

Documentation

Overview

package datagenerator

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL