sidiraihan / docker-bun-postgres

This is Docker for execute Bun and postgresSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bun + Elysia + PostgreSQL in Docker

Bun Official A brief description of what this project does and who it's for

Installation for Local Environtment

Install my-project with docker & docker-compose (make sure you already install docker to your machine) and you can run :

    #cd my-project
    #(sudo) docker-compose run --rm webapp bun install
    #(sudo) docker-compose up -d

API Reference

Get all books

  GET /books

Get book

  GET /books/${id}
Parameter Type Description
id string Required. Id of item to fetch

Insert book

  POST /books
Parameter Type Description
name string name of book to fetch
title string title of book to fetch
description string description of book

Edit book

  PUT /books
Parameter Type Description
id string Required. Id of item to fetch
Body Type Description
name string name of book to fetch
title string title of book to fetch
description string description of book

Delete book

  DELETE /books/${id}
Parameter Type Description
id string Required. Id of item to fetch

Database

in folder :

  install/db/

all sql will execute after db service is run.

Authors

About

This is Docker for execute Bun and postgresSQL

License:MIT License


Languages

Language:TypeScript 76.2%Language:JavaScript 13.4%Language:Dockerfile 10.4%