Skip to content

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flight-search

Features

  • Search Flights
  • Buy Tickets
  • Stripe Payment Integration
  • Clerk Auth Integration
  • Retrieve flight tickets
  • Basic role-based accesses
  • Logging with Morgan and Winston
  • Easy develop and deploy with Docker/Docker Compose

How to set up locally

Prerequisite

  • Docker and Docker Compose
  • NodeJS and NPM

Running develop environment with docker

  • Copy .env.example to .env in each folder frontend and backend and fill all the keys for Clerk and Stripe

  • From root directory run following commands respectively (run the last scripts if you want to stop)

# To `run npm install` on backend and frontend folder
sh scripts/setup.sh

# To start up dev environment with docker, run
sh scripts/start-dev.sh

# To apply migration and seed mock data to database, run
sh scripts/seed.sh

# To stop all containers, run
sh scripts/clean-dev.sh

Notes

  • For payment, use mock data number from Stripe Docs. Only accept MasterCard or Visa.

Architect

architect

About

Code Challenge: Secure Flight Search and Booking System

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages