Skip to content

gmoralesc/expresso

Repository files navigation

Expresso

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

Requirements

  • Node.js >= 18.x
  • npm >= 8.x

Installation

  1. git clone https://github.com/gmoralesc/expresso
  2. cd expresso
  3. npm install
  4. npm run dev
  5. Base url: http://localhost:3000

Configuration

Create a enviroment variable call PORT to override the default port value 3000

Development

  1. git clone https://github.com/gmoralesc/expresso --branch develop
  2. cd expresso
  3. npm install
  4. npm run dev
  5. Base url: http://localhost:3000

Test

npm test

Visual Studio Code Extensions

Go to Extensions > Show Recommended Extensions

Documentation

About

Mimic the minimum features from Express JS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published