Git Product home page Git Product logo

ex_app's Introduction

ExApp

ExApp

This project is for my master thesis about DevOps: Implemetation of CI/CD for container based applications at the FOM Dortmund.

The complete thesis can be downloaded here.

It contains a Phoenix Framework based project that is build by Circle CI and automatically deployed to AWS, with the following features:

  • Static code analysis, formatting checks and test for every commit using GitHub actions
  • Cirlce CI pipeline with various tests for every pull request
  • Automatic serverless deployment using AWS Fargate and terraform
  • Automatic preview environments for pull requests
  • Automatic cleanup of preview environments when pull requests are closed or merged
  • Automatic deployment into production for merged pull requests

The workflow for the CI/CD pipeline is:

Workflow

Getting started

A Linux OS is the recommended environment for running this application.

Install Docker and asdf and execute the following plugins:

# Elixir/Erlang
apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop
asdf plugin-add erlang
asdf plugin-add elixir

# NodeJS
apt-get install dirmngr gpg
asdf plugin-add nodejs

# Add the following to your ~/.bashrc to make global package installation work
export PATH=$PATH:/usr/local/lib/npm/bin

# Terrform
asdf plugin-add terraform

# While being the application main folder run this install the versions specified in the .tool-versions file:
asdf install

Running locally

You can set up the application by running the following make commands:

make setup
make run

Now you can visit localhost:4000 from your browser.

Running in docker

To build a docker image and run it you can use this commands:

make docker
make run_docker

ex_app's People

Contributors

kuffel avatar

Watchers

James Cloos 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.