Skip to content

About

REST API for the Bricks app – built with Elysia.js, Bun and MongoDB

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

Bricks Backend

REST API for the Bricks app, built with Elysia.js and Bun.

Tech Stack

  • Runtime: Bun
  • Framework: Elysia.js
  • Database: MongoDB (Atlas / local)
  • ODM: Mongoose

Getting Started

Prerequisites

  • Bun installed
  • MongoDB Atlas account or local MongoDB instance

Installation

bun install

Environment Variables

Create a .env file in the root directory:

MONGODB_URI=mongodb+srv://<username>:<password>@cluster.mongodb.net/klemmbaustein
PORT=3000

Development

bun run dev

Production

bun run start

API Endpoints

Products

Method Endpoint Description
GET /products Get all products
GET /products/owned Get owned products
GET /products/wishlist Get wishlist products
GET /products/:id Get product by ID
POST /products Create a new product
PUT /products/:id Update a product
DELETE /products/:id Delete a product

About

REST API for the Bricks app – built with Elysia.js, Bun and MongoDB

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages