Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .github/workflows/Deploy-to-azure-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Dev Pipeline - Deploy to Azure Web App Service"
on:
push:
branches: [ "Azure-Dev-Preview" ]
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: azure/docker-login@v1
with:
login-server: ideal.azurecr.io
username: ${{ secrets.AZURE_REGISTRY_USERNAME }}
password: ${{ secrets.AZURE_REGISTRY_PASSWORD }}

- name: Build the Docker image and Push to Azure Container Registry
working-directory: ./app
run: |
docker build . -t ideal.azurecr.io/ideals:${{ github.sha }}
docker push ideal.azurecr.io/ideals:${{ github.sha }}

- uses: azure/webapps-deploy@v2
with:
app-name: 'ideals-dev'
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
images: 'ideal.azurecr.io/ideals:${{ github.sha }}'
2 changes: 2 additions & 0 deletions .github/workflows/development-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
run: bin/rails generate rspec:install
- name: Run tests
run: bin/rake
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
build:
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@
**/.DS_Store

app/tmp
app/log
app/log

app/node_modules/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
[![CI Pipeline - DEV](https://github.com/Proj-IDEALS/ideals/actions/workflows/dev-pipeline.yml/badge.svg)](https://github.com/Proj-IDEALS/ideals/actions/workflows/dev-pipeline.yml)

[![CI/CD Pipeline - RELEASE](https://github.com/Proj-IDEALS/ideals/actions/workflows/release-pipeline.yml/badge.svg)](https://github.com/Proj-IDEALS/ideals/actions/workflows/release-pipeline.yml)

[![Dev Pipeline - Deploy to Azure Web App Service](https://github.com/Proj-IDEALS/ideals/actions/workflows/Deploy-to-azure-dev.yml/badge.svg)](https://github.com/Proj-IDEALS/ideals/actions/workflows/Deploy-to-azure-dev.yml)
1 change: 1 addition & 0 deletions app/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults
7 changes: 7 additions & 0 deletions app/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,10 @@ gem 'rubocop', require: false
gem 'unicorn', '~> 6.1.0'
gem 'sidekiq', '~> 6.4.2'
gem 'redis-rails', '~> 5.0.2'

#login
gem 'omniauth-auth0', '~> 3.0'
gem 'omniauth-rails_csrf_protection', '~> 1.0' # prevents forged authentication requests

gem 'webpacker'
gem 'react-rails'
60 changes: 59 additions & 1 deletion app/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ GEM
rdoc
reverse_markdown
ast (2.4.2)
babel-source (5.8.35)
babel-transpiler (0.7.0)
babel-source (>= 4.0, < 6)
execjs (~> 2.0)
bindex (0.8.1)
bootsnap (1.16.0)
msgpack (~> 1.2)
Expand All @@ -89,7 +93,7 @@ GEM
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
coderay (1.1.3)
concurrent-ruby (1.2.0)
concurrent-ruby (1.2.2)
connection_pool (2.3.0)
crass (1.0.6)
cucumber (8.0.0)
Expand Down Expand Up @@ -149,6 +153,11 @@ GEM
http_parser.rb (~> 0)
erubi (1.12.0)
eventmachine (1.2.7)
execjs (2.8.1)
faraday (2.7.4)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
ffi (1.15.5)
formatador (1.1.0)
gem_update_checker (0.2.0)
Expand All @@ -170,6 +179,7 @@ GEM
guard-compat (~> 1.0)
multi_json (~> 1.8)
hashdiff (1.0.1)
hashie (5.0.0)
http_parser.rb (0.8.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
Expand All @@ -183,6 +193,7 @@ GEM
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
json (2.6.3)
jwt (2.7.0)
kgio (2.11.4)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
Expand All @@ -207,6 +218,7 @@ GEM
msgpack (1.6.0)
multi_json (1.15.0)
multi_test (1.1.0)
multi_xml (0.6.0)
nenv (0.3.0)
net-imap (0.3.4)
date
Expand All @@ -227,6 +239,26 @@ GEM
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
oauth2 (2.0.9)
faraday (>= 0.17.3, < 3.0)
jwt (>= 1.0, < 3.0)
multi_xml (~> 0.5)
rack (>= 1.2, < 4)
snaky_hash (~> 2.0)
version_gem (~> 1.1)
omniauth (2.1.1)
hashie (>= 3.4.6)
rack (>= 2.2.3)
rack-protection
omniauth-auth0 (3.1.0)
omniauth (~> 2)
omniauth-oauth2 (~> 1)
omniauth-oauth2 (1.8.0)
oauth2 (>= 1.4, < 3)
omniauth (~> 2.0)
omniauth-rails_csrf_protection (1.0.1)
actionpack (>= 4.2)
omniauth (~> 2.0)
os (1.1.4)
parallel (1.22.1)
parser (3.2.1.0)
Expand All @@ -243,6 +275,10 @@ GEM
rack (2.2.6.2)
rack-livereload (0.3.17)
rack
rack-protection (3.0.5)
rack
rack-proxy (0.7.6)
rack
rack-test (2.0.2)
rack (>= 1.3)
rails (7.0.4.2)
Expand Down Expand Up @@ -280,6 +316,12 @@ GEM
rb-readline (0.5.5)
rdoc (6.5.0)
psych (>= 4.0.0)
react-rails (2.6.2)
babel-transpiler (>= 0.7.0)
connection_pool
execjs
railties (>= 3.2)
tilt
redis (4.8.1)
redis-actionpack (5.3.0)
actionpack (>= 5, < 8)
Expand Down Expand Up @@ -333,16 +375,21 @@ GEM
rubocop-ast (1.26.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.11.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
selenium-webdriver (4.8.1)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
semantic_range (3.0.0)
shellany (0.0.1)
sidekiq (6.4.2)
connection_pool (>= 2.2.2)
rack (~> 2.0)
redis (>= 4.2.0)
snaky_hash (2.0.1)
hashie
version_gem (~> 1.1, >= 1.1.1)
sprockets (4.2.0)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand All @@ -360,6 +407,7 @@ GEM
ffi (~> 1.1)
terminal-notifier (2.0.0)
thor (1.2.1)
tilt (2.1.0)
timeout (0.3.2)
turbo-rails (1.3.3)
actionpack (>= 6.0.0)
Expand All @@ -371,6 +419,7 @@ GEM
unicorn (6.1.0)
kgio (~> 2.6)
raindrops (~> 0.7)
version_gem (1.1.1)
web-console (4.2.0)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
Expand All @@ -380,6 +429,11 @@ GEM
nokogiri (~> 1.6)
rubyzip (>= 1.3.0)
selenium-webdriver (~> 4.0)
webpacker (5.4.4)
activesupport (>= 5.2)
rack-proxy (>= 0.6.1)
railties (>= 5.2)
semantic_range (>= 2.3.0)
webrick (1.8.1)
websocket (1.2.9)
websocket-driver (0.7.5)
Expand All @@ -406,10 +460,13 @@ DEPENDENCIES
guard-livereload (~> 2.5)
importmap-rails
jbuilder
omniauth-auth0 (~> 3.0)
omniauth-rails_csrf_protection (~> 1.0)
puma (~> 5.0)
rack-livereload (~> 0.3.16)
rails (~> 7.0.4, >= 7.0.4.2)
rb-readline
react-rails
redis-rails (~> 5.0.2)
rspec-rails
rubocop
Expand All @@ -423,6 +480,7 @@ DEPENDENCIES
unicorn (~> 6.1.0)
web-console
webdrivers
webpacker

RUBY VERSION
ruby 3.1.3p185
Expand Down
10 changes: 10 additions & 0 deletions app/app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
//= link_tree ../images
//= link_directory ../stylesheets .css
//= link_tree ../../javascript .js
//= link_tree ../../../vendor/assets/javascript .js
//= link_tree ../../../vendor/assets/stylesheets .css

//= link turbo.min.js
//= link bootstrap.js
//= link bootstrap.css
//= link bootstrap-icons.css
//= link boxicons.css
//= link_tree ../../javascript .js
//= link_tree ../../../vendor/javascript .js

15 changes: 15 additions & 0 deletions app/app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require rails-ujs
//= require activestorage
//= require_tree .
Loading