Giter VIP home page Giter VIP logo

dashboard.aptible.com's Introduction

dashboard.aptible.com

Build Status Stories in Ready

Aptible's customer dashboard (aka Diesel). It allows users to manage organizations, access controls, and ops.

The NPM package and internal project name for this Ember app is diesel.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • change into the new directory
  • brew install watchman
  • npm install -g ember-cli
  • npm install
  • bower install

Running / Development

  • ember server
  • Visit localhost:4200

By default, the api.aptible.com and auth.aptible.com servers will be used as data sources. For use with Dashboard they should be given the .env values of:

CORS_DOMAIN="http://localhost:4200"

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying

Custom website

An addon is used to create new websites on top of S3 bucket with website hosting, CloudFront, and Route53 via a CloudFormation template.

To create a new website use the following command:

ember create-website --domain=aptible-staging.com --subdomain=dashboard-rwjblue

To build and deploy to this newly created bucket, use the following command:

AWS_BUCKET=dashboard-rwjblue.aptible-staging.com ember deploy --environment staging

Continuous Deployment

The master branch of this repo is deployed to dashboard.aptible-staging.com upon a successful build.

The release branch of this repo is deployed to dashboard.aptible.com upon a successful build.

Production Release

To trigger CI to deploy a new version to production, run the following command:

ember release

This does the following steps automatically:

  • Update package.json version
  • Commit the package.json changes
  • Tag the next version. This automatically selects a patch level version bump. To bump the minor version you can run ember release --minor (same with major).
  • Push tag and package.json changes to master.
  • Push master to release (this triggers CI to do a production deployment).

Deploying via CI

This repo contains a .travis.yml file that will automatically deploy the application to staging/production. To do this, our AWS credentials are encrypted and stored on Travis. To update these credentials, run the following command (inserting the credential values):

travis encrypt -r aptible/dashboard.aptible.com --add env AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=...

The .travis.yml file will be updated with a new value for env.secure. Commit and push this file.

Further Reading / Useful Links

Copyright

Copyright (c) 2015 Aptible. All rights reserved.

@sandersonet

dashboard.aptible.com's People

Watchers

 avatar  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.