README.md 597 Bytes
Newer Older
Nils Broedner's avatar
Nils Broedner committed
1
2
3
Cloud Komponente der IOTLab Coffee App
===========

4
# Install the Serverless Framework
Nils Broedner's avatar
Nils Broedner committed
5
```bash
Nils Brödner's avatar
Nils Brödner committed
6
npm install
Nils Broedner's avatar
Nils Broedner committed
7
8
npm install serverless -g
```
9
10

# Deploy it!
Nils Broedner's avatar
Nils Broedner committed
11
12
13
```bash
serverless deploy
```
Nils Brödner's avatar
Nils Brödner committed
14
15

# Upload Website and accounts.json
Nils Brödner's avatar
Nils Brödner committed
16
Upload the accounts.json from the to_S3 folder to a S3 Bucket and copy the name of the bucket into the serverless.yml.
Nils Broedner's avatar
Nils Broedner committed
17
Normally a new Bucket should be created by the Serverless Framework. If not, create one by hand
Nils Brödner's avatar
Nils Brödner committed
18
19
20

Change the apiGateWayStageURL in the index.html.
You can now upload the rest of the folder. Make the elements public readable and you can now use it as a Website.
21