Skip to content

Commit 437d4aa

Browse files
committed
all parts completed
1 parent 9b8c005 commit 437d4aa

10 files changed

+6048
-62
lines changed

Diff for: LICENSE

-20
This file was deleted.

Diff for: README.md

+2-39
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
1-
Express & ES6 REST API Boilerplate
2-
==================================
3-
4-
This is a straightforward boilerplate for building REST APIs with ES6 and Express.
5-
6-
- ES6 support via [babel](https://babeljs.io)
7-
- REST resources as middleware via [resource-router-middleware](https://github.com/developit/resource-router-middleware)
8-
- CORS support via [cors](https://github.com/troygoode/node-cors)
9-
- Body Parsing via [body-parser](https://github.com/expressjs/body-parser)
10-
11-
> Tip: If you are using [Mongoose](https://github.com/Automattic/mongoose), you can automatically expose your Models as REST resources using [restful-mongoose](https://git.io/restful-mongoose).
12-
13-
141

152
Getting Started
163
---------------
174

185
```sh
196
# clone it
207
git clone [email protected]:developit/express-es6-rest-api.git
21-
cd express-es6-rest-api
228

239
# Make it your own
2410
rm -rf .git && git init && npm init
@@ -27,31 +13,8 @@ rm -rf .git && git init && npm init
2713
npm install
2814

2915
# Start development live-reload server
30-
PORT=8080 npm run dev
16+
PORT=4000 npm run dev
3117

3218
# Start production server:
33-
PORT=8080 npm start
34-
```
35-
Docker Support
36-
------
37-
```sh
38-
cd express-es6-rest-api
39-
40-
# Build your docker
41-
docker build -t es6/api-service .
42-
# ^ ^ ^
43-
# tag tag name Dockerfile location
44-
45-
# run your docker
46-
docker run -p 8080:8080 es6/api-service
47-
# ^ ^
48-
# bind the port container tag
49-
# to your host
50-
# machine port
51-
19+
PORT=4000 npm start
5220
```
53-
54-
License
55-
-------
56-
57-
MIT

0 commit comments

Comments
 (0)