Skip to content

vmalieske/bricks-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors