Giter Site home page Giter Site logo

nodejs-ec2-launcher's Introduction

nodejs-ec2-launcher

Node.js web application to start and stop AWS EC2 instances

Building Blocks

Server

express - web application framework for node

$ express --sessions --css less --hogan --force nodejs-ec2-launcher

hogan-express - Hogan.js, Mustache template engine for express 3.x. Support partials and layout.

$ npm install hogan-express --save

Passport - Simple, unobtrusive authentication for Node.js.

$ npm install passport --save

Passport-BrowserID - Passport strategy for authenticating with Mozilla Persona (formerly known as BrowserID).

$ npm install passport-browserid --save

AWS SDK für Node.js

$ npm install aws-sdk --save

Client

zepto.js - a minimalist JavaScript library for modern browsers with a largely jQuery-compatible API.

Font Awesome - The iconic font designed for Bootstrap.

Start the app

$ foreman start

Point your favourite browser to http://localhost:3000/.

Default PORT is 3000. To change create .env file with e.g. PORT=3001.

Configuration

Environment variables, e.g. via .env:

PORT=3000
PERSONA_AUDIENCE=http://localhost:3000

AWS_ACCESS_KEY_ID=[AWS_ACCESS_KEY_ID]
AWS_SECRET_ACCESS_KEY=[AWS_SECRET_ACCESS_KEY]
AWS_REGION=[AWS_REGION]

PERSONA_USERS_INSTANCES={"[email protected]":["i-ab12cde1"]}

Heroku Deployment Steps

Install the Heroku Toolbelt - everything you need to get started using heroku.

Authenticate/ login: heroku login

Install heroku-config, a plugin for the heroku CLI that makes it easy to push or pull your application’s config environment vars, from or into your local .env file.

$ heroku plugins:install git://github.com/ddollar/heroku-config.git

Create a .env file with your project configuration - see above.

Next, deploy the application to Heroku.

Create the app: heroku create

Push your local environment file to Heroku: heroku config:push

Deploy the code: git push heroku master

nodejs-ec2-launcher's People

Contributors

semanticdreamer avatar

Watchers

 avatar  avatar

Forkers

brineylib

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.