This article should walk through:
Creating a project
npx @streetjs/cli create my-api
cd my-api
npm install
npm run dev
Creating a controller
@Controller('/products')
export class ProductsController {
@get('/')
async list() {
return products;
}
}
Testing the endpoint
curl http://localhost:3000/products
Adding validation
Adding PostgreSQL
Deploying
If you're interested in exploring it:
GitHub: https://github.com/hassanmubiru/StreetJS
Documentation: https://hassanmubiru.github.io/StreetJS/
Top comments (0)