REST API for the Bricks app, built with Elysia.js and Bun.
- Runtime: Bun
- Framework: Elysia.js
- Database: MongoDB (Atlas / local)
- ODM: Mongoose
- Bun installed
- MongoDB Atlas account or local MongoDB instance
bun installCreate a .env file in the root directory:
MONGODB_URI=mongodb+srv://<username>:<password>@cluster.mongodb.net/klemmbaustein
PORT=3000bun run devbun run start| 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 |