https://github.com/rahul8320/flight-booking-bun-api
Flights booking api using bun and typescript
https://github.com/rahul8320/flight-booking-bun-api
bun bun-test express jest prisma-orm sqlite3
Last synced: 3 months ago
JSON representation
Flights booking api using bun and typescript
- Host: GitHub
- URL: https://github.com/rahul8320/flight-booking-bun-api
- Owner: Rahul8320
- Created: 2025-01-18T18:07:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-11T03:36:13.000Z (over 1 year ago)
- Last Synced: 2025-03-11T04:28:16.495Z (over 1 year ago)
- Topics: bun, bun-test, express, jest, prisma-orm, sqlite3
- Language: TypeScript
- Homepage:
- Size: 124 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flight-booking-api
This is a simple flight booking API built with Bun.
## Prerequisites
- [Bun](https://bun.sh/docs/installation)
## Installation
1. Clone the repository
2. Copy .env.sample to .env and update the variables. For example, you can refer the following
```env
PORT=3000
LOG_LEVEL=info
TIMESTAMP_FORMAT=YYYY-MM-DD HH:mm:ss
DATABASE_URL="file:./dev.db"
```
3. Run `bun install` to install dependencies
4. Run `bunx prisma migrate deploy` to update migrations
5. Run `bun start` to start the server
To run:
```bash
bun start
```
To run tests:
```bash
bun test
```
To seed the db:
```bash
bun run prisma-seed
```
## Dependencies
- [Express](https://expressjs.com/)
- [Winston](https://github.com/winstonjs/winston)
- [TypeScript](https://www.typescriptlang.org/)
- [Prisma](https://www.prisma.io/)
This project was created using `bun init` in bun v1.1.45. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.