DEV Community

Edrick Ee
Edrick Ee

Posted on

Setting up Morgan, express.json & ESLint(airbnb)

  1. npm install morgan

  2. npm i eslint eslint-config-airbnb-base eslint-plugin-import -g
    a. Although I don't prefer Airbnb style of eslint, since it's industry standard, I'll need to get comfortable with it.

  3. const morgan = require('morgan')

  4. app.use(morgan('dev'));

  5. app.use(express.json());

  6. Morgan can show us how long it's taking us to retrieve the data from db

resource link to eslint-airbnb: https://medium.com/medvine/install-eslint-global-with-airbnb-style-guide-and-use-it-in-vscode-d752dfa40b21

Top comments (0)