Git Product home page Git Product logo

level1's Introduction

Level 1: Deploy Azure Rails and Ember Todo App

As part of a blog series on deploying a Rails applications on Azure with increasing levels of DevOps maturity. See: todo:add_link

This Todo app runs an ember frontend which depends on a Rails backend. It illustrates the scripted level of DevOps maturity (Level 1).

Required Tools

  • Mongoid
  • Rails API Stack
  • Active Model Serializers for JSONAPI serialization

Routes

  • /api/v1/todo_lists
  • /api/v1/todo_items
  • Standard

Azure Functionality Used:

  • Azure CLI
  • Azure Virtual Machines
    • Key Vault Secrets
    • Custom Script Extension
  • Azure Document DB
  • Azure Key Vault
  • Azure Active Directory Service Principal
  • (optional) Azure Scale Sets

How to run this sample

  • Clone the repo and cd into the root of the repo
  • Run ./scripts/provision. This will build all of the Azure infrastructure.
    • change set -eu in ./scripts/provision to set -eux if you'd like see verbose / debug script output.
  • From the root of the repo, cd api-ruby.
  • Run bundle exec cap production deploy:initial. This will deploy the Ember / Rails Todo application to your Azure infrastructure.
  • Run echo http://$(az network public-ip show -g level1 -n level1-vmss --query 'dnsSettings.fqdn' -o tsv) to get th

level1's People

Contributors

devigned avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

level1's Issues

question - mongoid url instead of hosts

🤔

In https://github.com/devigned/level1/blob/master/api-ruby/config/mongoid.yml production block I can see you are retrieving the "connection string" from az command line

I'm testing this way too and it works fine with me too (In my own project)

But in principle, should I understand it that there is no way to configure hosts: and user & password in the mongoid.yaml for cosmos. And if so, do you have any insight why this is the case ? (is it like ssl issue of mongoid? or lack of CosmosDB connection capabilities on the mongoid side ? )

Thank you for doing all the hard work, this repo definitely helped me a lot

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.