Skip to content

Commit 554a49e

Browse files
committedSep 16, 2019
update readme
1 parent 5b6aee6 commit 554a49e

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed
 

‎README.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
# AWS Layer for Lambda functions
22

3-
Sharp js as a layer,
3+
[Sharp](https://sharp.pixelplumbing.com/en/stable/) js as a layer,
44

55
## Image copyright
66

77
`lucky.jpg` is owned by me
88

9-
## Example
9+
## Running the example
1010

11-
http://0.0.0.0:4000/sharp?width=800&metadata=true&convolve=true
11+
```bash
12+
cd example
13+
14+
yarn
15+
yarn start
16+
```
17+
18+
Then visit the following link
19+
20+
[http://localhost:4000/sharp?width=800&metadata=true&convolve=true](http://0.0.0.0:4000/sharp?width=800&metadata=true&convolve=true)
21+
22+
to deploy run `yarn deploy` from the `example` folder

‎deploy.sh

-12
This file was deleted.

‎example/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
},
1818
"scripts": {
1919
"start": "nodemon -w ./src/**/* --exec \"yarn offline\" ",
20-
"offline": "sls offline start"
20+
"offline": "sls offline start",
21+
"deploy": " sls deploy"
2122
},
2223
"keywords": [],
2324
"author": "",

0 commit comments

Comments
 (0)