Skip to content

Rahul8320/Flight-Booking-Bun-API

Repository files navigation

flight-booking-api

This is a simple flight booking API built with Bun.

Prerequisites

Installation

  1. Clone the repository
  2. Copy .env.sample to .env and update the variables. For example, you can refer the following
  PORT=3000
  LOG_LEVEL=info
  TIMESTAMP_FORMAT=YYYY-MM-DD HH:mm:ss

  DATABASE_URL="file:./dev.db"
  1. Run bun install to install dependencies
  2. Run bunx prisma migrate deploy to update migrations
  3. Run bun start to start the server

To run:

bun start

To run tests:

bun test

To seed the db:

bun run prisma-seed

Dependencies

This project was created using bun init in bun v1.1.45. Bun is a fast all-in-one JavaScript runtime.

About

Flights booking api using bun and typescript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published