Mimic the minimum features from Express JS
- App constructor:
express() - Methods:
app.get, app.post, app.put, app.patch, app.delete - Helper functions:
send, json, status - Functions:
next() - Middleware:
app.use, Error middleware (must include next param 4 in total) - Support: Body Parser or
express.json()to parse JSON - Multiple middleware in the methods
- Route String: Params and Querystring
- Node.js >= 18.x
- npm >= 8.x
git clone https://github.com/gmoralesc/expressocd expressonpm installnpm run dev- Base url:
http://localhost:3000
Create a enviroment variable call PORT to override the default port value 3000
git clone https://github.com/gmoralesc/expresso --branch developcd expressonpm installnpm run dev- Base url:
http://localhost:3000
npm test
Go to Extensions > Show Recommended Extensions