Skip to content

promise-app-team/promise-api

Repository files navigation

Promise API

Promise API Server

How do I access https on localhost?

Development

This project is using Bun.js as a typescript runtime & toolkit.

Installing Packages

$ bun install

Setup Environment Variables

Copy .env.example to .env and fill the variables.

$ cp .env.example .env

Running API Server

# development mode
$ bun run start:dev

# production mode
$ bun run start:prod

Database Migration

# generate migration file
$ bun run migration new <migration-name>

# run migration
$ bun run migration up

# revert last migration
$ bun run migration down

# revert migrations
$ bun run migration down <number-of-migrations>

# list migrations
$ bun run migration list

Project Structure

TODO