- Latest Node.js version.
- nvm or nvm-windows can be used to install / manage Node.js versions
Install dependencies:
npm i
Copy the .env.sample
file into a file named .env
and update the variables accordingly.
cp .env.sample .env
Also update the file named src/env.js
with the variables accordingly.
After installing dependencies, creating the .env
file and updating the src/env.js
file, run the API:
npm start
For development:
npm run dev
Includes API Server utilities:
- express
- Fast, unopinionated, minimalist web framework for node.js
- morgan
- HTTP request logger middleware for node.js
- helmet
- Helmet helps you secure your Express apps by setting various HTTP headers. It's not a silver bullet, but it can help!
- dotenv
- 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
- compression
- Node.js compression middleware.
- csurf
- Node.js CSRF protection middleware.
- cookie-parser
- Parse Cookie header and populate req.cookies with an object keyed by the cookie names.
- cors
- CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.
Development utilities: