2018-05-21T15:28:13.000Z

How to Serverless from scratch

Links to the tool Up https://up.docs.apex.sh/

Links to the AWS console http://aws.amazon.com/

AWS credidentials file which should be in this location ~/.aws/credentials:

[default]
aws_access_key_id = XXXXXX
aws_secret_access_key = XXXXXX

The up.json config file

{
  "name": "awesome-bear"
}

My app.js file

const http = require('http')
const PORT = process.env.PORT || 3000
http.createServer((req, res) => {
  res.end('Hi Serverless World')
}).listen(PORT)

How to install up:

curl -sf https://up.apex.sh/install | sh

Commands I am running

$ up
$ up url
$ up url -s production
Tags:#serverless
Previous:Aframe with Oculus Go is great WebVR
Next:How we do Docker Multistage builds and share Github private repositories