Giter Site home page Giter Site logo

making_websites_different_ways's Introduction

MakingWebsitesDifferentWays

Trivial Sites that will be used to test various deployment approaches

Method 1: Deploy Static Websites (using Amazon S3)

  • Go to S3 service
  • Create bucket (make sure to enable public access)
  • Configure Bucket
    • Properties → Static website hosting → edit → enable
      • Use all the defaults
      • For this example
        • The default (index document) page is index.html
        • The error document is error.html...though I don’t think we’ll use it
    • Permissions → Edit bucket policy
      • Paste in example, swapping in your own bucket name (leaving the trailing /*, to indicate this applies to everything in that bucket)
    • Objects → Upload → index.html
      • Use defaults for upload
      • index.html is just a simple hello world written in html
  • Go back to properties → Static website hosting
    • Follow the link to see the contents of index.html being displayed

Method 2: Deploy Serverless (AWS Lambda)

  1. Create Lambda Function
    1. Open Lambda service (he has this option directly in cloud9, but it’s either a plugin, or there has been a GUI change since he filmed
    2. Create Function:
      1. Select Function name
      2. Select runtime (eg: python)
    3. Configure Lambda Function
      1. Function overview → +Add Trigger
        1. For this example, select API, which is used for http and RESTful APIs
          1. Select REST
      2. Security: Select Open, so that no additional configuration is required yet
    4. Create content for the function (see lambda_function.py)
  2. Test Lambda Function:
    1. Create Test Event
      1. Provide input keys and values ({“key”: “value”}), or just use open braces {} for now
    2. Deploy
    3. Test:
      1. Make sure to deploy before testing
      2. You should see
  3. View content:
    1. Select the API Gateway trigger that you created above
    2. Go to details, and follow the link to API endpoint
      1. You should seen the content returned from your function call

making_websites_different_ways's People

Contributors

jtclark2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.