Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nitaliano/starter-api
- Owner: nitaliano
- Created: 2015-06-26T21:01:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-28T01:09:28.000Z (over 9 years ago)
- Last Synced: 2024-04-10T13:29:56.799Z (9 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 setupI'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
```