Skip to content

wheeleruniverse/cgc-azure-cicd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cgc-azure-cicd

https://acloudguru.com/blog/engineering/cloudguruchallenge-build-a-continuously-integrated-global-azure-web-app

Architecture

Backend

Database

DevOps

Frontend

Networking

Storage

Environment Variables

MONGODB_URI

  • Valid MongoDB Connection URI

STORAGE_SAS

  • Valid Azure Blob Shared Access Signature

Local Setup

MongoDB (Windows 10 Home)

  1. Install MongoDB: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/

  2. Run MongoDB:

    :: run as administrator
    "C:\Program Files\MongoDB\Server\4.4\bin\mongo.exe"

Ruby on Rails (Windows 10 Home)

  1. Configure Windows Subsystem for Linux (WSL): https://docs.microsoft.com/en-us/windows/wsl/install-win10

  2. Install Ubuntu 20.04 LTS: https://www.microsoft.com/en-us/p/ubuntu-2004-lts/9n6svws3rx71?rtc=1&activetab=pivot:overviewtab

Ruby on Rails (Ubuntu 20.04 LTS WSL)

  1. Install Dependencies

    sudo apt-get -y install software-properties-common
    sudo apt-add-repository -y ppa:rael-gc/rvm
    sudo apt-get -y update
  2. Install Ruby Version Manager (rvm): https://github.com/rvm/ubuntu_rvm

    sudo apt-get -y install rvm
    sudo usermod -a -G rvm wheeler146
    sudo reboot
  3. Enable Gemsets

    rvm -v 
    rvm user gemsets
  4. Install Ruby

    rvm install 2.6.2
    rvm use 2.6.2
  5. Create Gemset

    rvm gemset create verify-app
    rvm gemset use verify-app
  6. Install Rails

    gem install rails
  7. Install Node Version Manager (nvm): https://github.com/nvm-sh/nvm

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
    source ~/.bashrc
    nvm -v 
  8. Install Node

    nvm install 14.16.1
    nvm use 14.16.1
    node -v
    npm -v
  9. Install Yarn

    npm install --global yarn
    yarn --version
  10. Change Directory

    cd app
  11. Install Bundle Dependencies

    bundle install
  12. Install Yarn Dependencies

    yarn install --check-files
  13. Install Webpack Dependencies

    rails webpacker:install