A Simple Express API Template
Includes API utilities ๐ :
-
- HTTP request logger middleware for node.js
-
- Dotenv is a zero-dependency module that loads environment variables from a
.env
file intoprocess.env
- Dotenv is a zero-dependency module that loads environment variables from a
-
- Helmet helps you secure your Express apps by setting various HTTP headers. It's not a silver bullet, but it can help!
-
- CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.
Development Utilities ๐จโ๐ป-
- nodemon
- nodemon is a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected.
If using ironer -
$ ironer express-api <directory>
$ cd <directory>
$ git remote remove origin
If using Git
$ git clone https://github.com/samyakbambole/express-api.git <directory>
$ cd <directory>
$ git remote remove origin
If using gh / Github Cli
$ gh repo clone samyakbambole/express-api <directory>
$ cd <directory>
$ git remote remove origin
$ npm i
$ npm run dev
$ npm start