A simple starterkit providing boilerplate code for a basic Express API
Please open a terminal and run the following command:
yarn install
Please open a first terminal and run the following command:
yarn watch
If you want to run the project with VSCode debugger, simply go to the Run and debug
section of your IDE
Then select the Debug
option from the dropdown menu, and press ▷ to run (F5).
Please open a second terminal and run the following command:
yarn dev
Please open a terminal and run the following command:
yarn lint
To run tests locally, please open a terminal and run the following command:
yarn test
Sometimes maintining Postman collection up to date can become really painful...
This project comes with an automated script to generate all the Postman collection
The postmanConfig
object located at @/src/config/index.ts
must be kept up to date with your API in order to generate the config file correctly
Please open a terminal and run the following command:
yarn generate-postman-collection
You will see a collection.json
file created at the root of the project.
You simply have to import it in the Postman application, and then you will be ready to test your API on Postman 🚀
- Up and running
express
API - Basic rate limiting usage example on routes
Postman
collection auto-generated supporting image upload,URL-encoded
form,JSON
body- Added unit test example with
jest
with coverage report - Basic CI setup with
Github Actions
TODO
:
- Find a workaround and remove usage from
tsconfig-paths
andmoragn
to limit as possible dependencies