Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cabalex committed Aug 14, 2023
1 parent f43bf2d commit 4738fd4
Show file tree
Hide file tree
Showing 50 changed files with 8,938 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build & deploy

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x

- name: Install NPM packages
working-directory: ./app
run: npm ci

- name: Build project
working-directory: ./app
run: npm run build

- name: Upload production-ready build files
uses: actions/upload-artifact@v2
with:
name: production-files
path: ./app/dist

deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: production-files
path: ./build

- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
75 changes: 75 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: "Update DB"
on:
schedule:
- cron: "38 4 * * *"

workflow_dispatch:
inputs:
tags:
description: 'this checkbox does nothing'
required: false
type: boolean


jobs:
update:
name: Update
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x

- name: Install NPM packages
working-directory: ./server
run: npm ci

- name: Run update script
run: npm run dev
working-directory: ./server

- name: Commit to base branch
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: 'db.yaucsccs'
commit_message: Routine DB Update
commit_author: Author <[email protected]>

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: database
path: ./app/public/db/db.yaucsccs

deploy:
name: Deploy
needs: update
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
- name: Checkout branch
uses: actions/checkout@v2
with:
ref: gh-pages

- name: Download artifact
uses: actions/download-artifact@v2
with:
name: database
path: ./db

- name: Commit to sub branch
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: 'db.yaucsccs'
commit_message: Routine DB Update
commit_author: Author <[email protected]>
branch: gh-pages
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Database temp files
tmpdb.yaucsccs
202 changes: 202 additions & 0 deletions .server/classes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
[
{
"code": "AM 10 - 01",
"name": "Math Methods I",
"number": 11235,
"details": {
"instructionMode": "In Person"
},
"availability": {
"status": 0,
"enrolled": 154,
"capacity": 160
},
"meetingInfo": {
"location": "LEC: Media Theater M110",
"dayAndTime": "MWF 12:00PM-01:05PM"
},
"instructor": {
"name": "Jackson,J."
}
},
{
"code": "AM 11A - 01",
"name": "Math Methd for Econ",
"number": 11234,
"details": {
"instructionMode": "In Person"
},
"availability": {
"status": 0,
"enrolled": 49,
"capacity": 110
},
"meetingInfo": {
"location": "LEC: Merrill Acad 102",
"dayAndTime": "MWF 10:40AM-11:45AM"
},
"instructor": {
"name": "Katznelson,J.R."
}
},
{
"code": "AM 11B - 01",
"name": "Math Methds Econ II",
"number": 11232,
"details": {
"instructionMode": "In Person"
},
"availability": {
"status": 0,
"enrolled": 77,
"capacity": 210
},
"meetingInfo": {
"location": "LEC: ClassroomUnit 002",
"dayAndTime": "MWF 01:20PM-02:25PM"
},
"instructor": {
"name": "Katznelson,J.R."
}
},
{
"code": "AM 30 - 01",
"name": "SOE Calculus III",
"number": 11231,
"details": {
"instructionMode": "In Person"
},
"availability": {
"status": 0,
"enrolled": 68,
"capacity": 70
},
"meetingInfo": {
"location": "LEC: Steven Acad 175",
"dayAndTime": "TuTh 03:20PM-04:55PM"
},
"instructor": {
"name": "Lee,D."
}
},
{
"code": "AM 100 - 01",
"name": "Math Methods III",
"number": 10474,
"details": {
"instructionMode": "In Person"
},
"availability": {
"status": 1,
"enrolled": 30,
"capacity": 30
},
"meetingInfo": {
"location": "LEC: Earth&Marine B214",
"dayAndTime": "TuTh 09:50AM-11:25AM"
},
"instructor": {
"name": "Wang,H."
}
},
{
"code": "AM 107 - 01",
"name": "IntroFluidDynamics",
"number": 12450,
"details": {
"instructionMode": "In Person"
},
"availability": {
"status": 0,
"enrolled": 21,
"capacity": 30
},
"meetingInfo": {
"location": "LEC: Engineer 2 194",
"dayAndTime": "TuTh 11:40AM-01:15PM"
},
"instructor": {
"name": "Brummell,N.H."
}
},
{
"code": "AM 114 - 01",
"name": "Intro Dynam Systems",
"number": 10775,
"details": {
"instructionMode": "In Person"
},
"availability": {
"status": 1,
"enrolled": 39,
"capacity": 80
},
"meetingInfo": {
"location": "LEC: N. Sci Annex 101",
"dayAndTime": "TuTh 01:30PM-03:05PM"
},
"instructor": {
"name": "Venturi,D."
}
},
{
"code": "AM 129 - 01",
"name": "Foundtns Sci Comput",
"number": 11067,
"details": {
"instructionMode": "In Person"
},
"availability": {
"status": 1,
"enrolled": 44,
"capacity": 44
},
"meetingInfo": {
"location": "LEC: Porter Acad 148",
"dayAndTime": "MWF 12:00PM-01:05PM"
},
"instructor": {
"name": "May,I."
}
},
{
"code": "AM 214 - 01",
"name": "Applied Dynamic Sys",
"number": 10776,
"details": {
"instructionMode": "In Person"
},
"availability": {
"status": 0,
"enrolled": 39,
"capacity": 80
},
"meetingInfo": {
"location": "LEC: N. Sci Annex 101",
"dayAndTime": "TuTh 01:30PM-03:05PM"
},
"instructor": {
"name": "Venturi,D."
}
},
{
"code": "AM 217 - 01",
"name": "Intro Fluid Dynamics",
"number": 12451,
"details": {
"instructionMode": "In Person"
},
"availability": {
"status": 0,
"enrolled": 21,
"capacity": 30
},
"meetingInfo": {
"location": "LEC: Engineer 2 194",
"dayAndTime": "TuTh 11:40AM-01:15PM"
},
"instructor": {
"name": "Brummell,N.H."
}
}
]
Loading

0 comments on commit 4738fd4

Please sign in to comment.