Skip to content

Instantly share code, notes, and snippets.

@gabrielh-silvestre
Last active July 9, 2022 16:02
Show Gist options
  • Save gabrielh-silvestre/0206402c1b50bbce19eba9f753de181b to your computer and use it in GitHub Desktop.
Save gabrielh-silvestre/0206402c1b50bbce19eba9f753de181b to your computer and use it in GitHub Desktop.
Steps to create a Express API
npm init -y
npm i express

With TypeScript

npm i -D typescript @types/express @types/node ts-node-dev
# + tests
npm i -D typescript @types/express @types/node chai chai-http @types/chai mocha @types/mocha sinon @types/sinon ts-node-dev

Without TypeScript

# without typescript
npm i -D nodemon
# + tests
npm i -D nodemon mocha chai chai-http sinon

Extras

npm i express sequelize mysql jsonwebtoken restify-errors express-async-errors bcryptjs dotenv http-status-code celebrate class-validator class-transformer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment