In this course, you’ll build the backend API for an e-commerce application. The API will support browsing products and managing shopping carts. By the end of the course, you’ll have built the following endpoints:
| Endpoint | Method | Description |
|---|---|---|
/products | GET | Get all products |
/products/:id | GET | Get a single product |
/products/search?q=... | GET | Search products |
/carts/:id | GET | Get a cart |
/carts/add | POST | Create a new cart |
/carts/:id | PUT | Update a cart |
/carts/:id | DELETE | Delete a cart |
The cart endpoints will be protected, while the product endpoints will be publicly accessible.
For the data, we will use DummyJSON, a free online REST API that provides realistic placeholder data. DummyJSON lets us skip the complexity of setting up a database and instead focus entirely on learning how to build APIs with Effect.