Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nitaliano/starter-api

Boilerplate api for express
https://github.com/nitaliano/starter-api

Last synced: about 2 months ago
JSON representation

Boilerplate api for express

Awesome Lists containing this project

README

        

## Installation and Usage

```
$ git clone https://github.com/unboundfire/starter-api.git
$ cd starter-api
$ npm install
$ npm start
```


## Env file setup

I'm using [dotenv](https://github.com/motdotla/dotenv) for my enviroment file.
All you'll need to do is create a file called .env and set the port in the file.

```
PORT=3000
NODE_ENV=development
API_PREFIX=/api/v1
TOKEN_SECRET=shhhhh
TOKEN_ALG=HS512
MONGO_URL=mongodb://localhost/test
```