Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
553 commits
Select commit Hold shift + click to select a range
500a62d
fixed openapi doc
RA341 Oct 26, 2024
b601982
Merge branch 'develop' into 62-edit-course-add/drop-students
NeemZ16 Oct 26, 2024
802d83b
added enddate check and disable handin check
RA341 Oct 26, 2024
e86f3e0
Merge pull request #150 from makeopensource/74-update-gradebook-styli…
jessehartloff Oct 28, 2024
4369778
Merge pull request #153 from RA341/submissions-files
jessehartloff Oct 28, 2024
626e40d
Merge pull request #154 from makeopensource/89-create-course-styling
jessehartloff Oct 28, 2024
29da364
Merge pull request #156 from makeopensource/85-edit-assignment-page
jessehartloff Oct 28, 2024
a61de37
Merge pull request #158 from RA341/add-users
jessehartloff Oct 28, 2024
7ae8fad
Merge branch 'develop' into 62-edit-course-add/drop-students
NeemZ16 Oct 28, 2024
9cfe8c6
Created both the .tsx and .scss for the Instructor submissions page. …
yessicaq Oct 28, 2024
9c69065
Created both the .tsx and .scss for the Instructor submissions page. …
yessicaq Oct 28, 2024
6793d91
Created both the .tsx and .scss for the Instructor submissions page. …
yessicaq Oct 28, 2024
3acedd2
Merge branch 'develop' into task-86-update_for_student's_submissions_…
ashwaqaljanahi2021 Oct 28, 2024
c4fae27
Merge pull request #159 from makeopensource/62-edit-course-add/drop-s…
NeemZ16 Oct 28, 2024
a7d265d
Merge pull request #157 from makeopensource/task-86-update_for_studen…
ashwaqaljanahi2021 Oct 28, 2024
7143bf4
fixed subtracting a day from start and end date
NeemZ16 Oct 28, 2024
96ee875
Merge pull request #162 from makeopensource/89-create-course-styling
NeemZ16 Oct 28, 2024
747e664
fixed try/catch syntax error
NeemZ16 Oct 28, 2024
8aff878
Merge pull request #163 from makeopensource/62-edit-course-add/drop-s…
NeemZ16 Oct 28, 2024
3613a4a
revert user.controller.ts to previous working state and update userCo…
NeemZ16 Oct 28, 2024
6fe2a8b
Merge pull request #164 from makeopensource/62-edit-course-add/drop-s…
NeemZ16 Oct 28, 2024
b21682b
Merge branch 'develop' into updated-devu
jessehartloff Oct 29, 2024
134dd4f
Merge pull request #161 from makeopensource/updated-devu
jessehartloff Oct 29, 2024
2f67d94
updated to use bulk add/drop students endpoints
NeemZ16 Oct 29, 2024
ddbdd67
Created both the .tsx and .scss for the Instructor submissions page. …
yessicaq Oct 29, 2024
f231aeb
Updated the styling for the coursedetil page and assignment page. I a…
yessicaq Oct 29, 2024
46f6251
Merge remote-tracking branch 'origin/updated-devu' into create-stylin…
yessicaq Oct 29, 2024
f49789d
Updated the styling for the coursedetil page and assignment page. I a…
yessicaq Oct 29, 2024
5f5b848
Updated the styling for the coursedetil page and assignment page. I a…
yessicaq Oct 29, 2024
a04a9f2
Updated Assignment Detail Page, Assignment Edit Page, and Assignment …
kevinzhong930 Oct 29, 2024
1c4bf63
fixed styling for homepage, assignment instructors view, and submissi…
ashwaqaljanahi2021 Oct 29, 2024
b4fec18
fixed styling for homepage, assignment instructos page, and students …
ashwaqaljanahi2021 Oct 29, 2024
dfe969f
Updated padding on Assignment creation/update
kevinzhong930 Oct 29, 2024
abdf79f
Merge pull request #165 from makeopensource/updated-devu
jessehartloff Oct 29, 2024
f5400cd
Merge pull request #166 from makeopensource/task-105-fixing-styling-e…
jessehartloff Oct 29, 2024
85ff2d1
added all options and defaults for session based on season, 110
NeemZ16 Nov 3, 2024
26a942e
added webhooks
RA341 Nov 4, 2024
47b7e6a
Added base webhookURLForm
kevinzhong930 Nov 4, 2024
76157c0
Added comment to aid backend
kevinzhong930 Nov 4, 2024
0a74350
Merge branch 'webhookURLForm' of https://github.com/makeopensource/de…
RA341 Nov 5, 2024
1345584
added matcher url
RA341 Nov 5, 2024
5de5dab
Updated the styling of the webhooks form
kevinzhong930 Nov 5, 2024
c2d9cfe
completed enrolled/not-enrolled feature
ashwaqaljanahi2021 Nov 5, 2024
810988e
added some styling for new dropdowns
NeemZ16 Nov 5, 2024
ff6153b
date selection automated on frontend
NeemZ16 Nov 5, 2024
7c4b7c0
set default semester for request to API
NeemZ16 Nov 5, 2024
4552cfa
semester options mobile friendly and works with theme toggle
NeemZ16 Nov 5, 2024
74a59a2
added ability to check if course is public
ashwaqaljanahi2021 Nov 5, 2024
38853eb
added public/private checkbox and private date
ashwaqaljanahi2021 Nov 5, 2024
b4d4c42
added filtering by start date to assignments
NeemZ16 Nov 5, 2024
94b82f5
Merge pull request #170 from makeopensource/62-edit-course-add/drop-s…
jessehartloff Nov 5, 2024
0956d4f
I created pages for the socreboard, added styling and dummy data. Add…
yessicaq Nov 5, 2024
cd44ce0
I allowed the user to be able to navigate to the course page when cli…
yessicaq Nov 5, 2024
753678b
I updated the styling, buttons format for a user to be able to view t…
yessicaq Nov 5, 2024
e9e0dbb
The instructor can now view a list of submissions as well as a search…
yessicaq Nov 5, 2024
275ca4d
I have removed the unnecessary drop down for question problems.
yessicaq Nov 5, 2024
97a2f95
Merge pull request #176 from makeopensource/111-Implement-enrolled-no…
jessehartloff Nov 5, 2024
1f33165
Merge pull request #178 from makeopensource/130-ability-to-make-cours…
jessehartloff Nov 5, 2024
5d48a67
Merge pull request #172 from makeopensource/webhooks
jessehartloff Nov 5, 2024
28c8284
I have removed the unnecessary drop down for question problems.
yessicaq Nov 5, 2024
f26a37e
Merge pull request #174 from makeopensource/119-webhooks-styling
jessehartloff Nov 5, 2024
b12fd39
Merge branch 'develop' into 110-automate-start/end-dates
NeemZ16 Nov 5, 2024
f5cb1a2
Updating the styling on the courseDetailPage.tsx. Updating the button…
yessicaq Nov 5, 2024
d5f9db5
Updating the styling for the student gradebookInstructorPage.tsx. Adj…
yessicaq Nov 5, 2024
60373a8
Removing the drop down for labeling assignment questions and allowing…
yessicaq Nov 5, 2024
93c4736
Now a user can click anywhere on a course container on the home page …
yessicaq Nov 6, 2024
41fa0b8
create the InstructorSubmissionspage.tsx. add a table of users. add a…
yessicaq Nov 6, 2024
abb8a3c
Updating the submission page by implementing a scoreboard to the bott…
yessicaq Nov 6, 2024
e3ce386
Updating the submission page by implementing a scoreboard to the bott…
yessicaq Nov 6, 2024
6e74f81
Merge pull request #181 from makeopensource/110-automate-start/end-dates
jessehartloff Nov 6, 2024
fb08aaa
Merge branch 'develop' into Remove-unnecessary-drop-down-for-assignments
jessehartloff Nov 6, 2024
029a633
Merge pull request #182 from makeopensource/Remove-unnecessary-drop-d…
jessehartloff Nov 6, 2024
45360da
Merge branch 'develop' into 133-Create-a-scoreboard-and-implement-des…
jessehartloff Nov 6, 2024
0869164
Merge pull request #183 from makeopensource/133-Create-a-scoreboard-a…
jessehartloff Nov 6, 2024
06dfd1a
fixed compiling errors
ashwaqaljanahi2021 Nov 6, 2024
4b30f48
update migrations
jessehartloff Nov 6, 2024
de17ad5
removed assignment filter by start date from backend
NeemZ16 Nov 6, 2024
c973ff5
Merge pull request #184 from makeopensource/110-automate-start/end-dates
NeemZ16 Nov 6, 2024
7428799
fixed private/public course bug
ashwaqaljanahi2021 Nov 6, 2024
1fc8f86
fixed request
RA341 Nov 8, 2024
d8c5eb3
added admin user CRUD, and middleware
RA341 Nov 8, 2024
b61aa14
fixed minor issues
RA341 Nov 8, 2024
0dab95c
fix bug in submission
RA341 Nov 9, 2024
298e51e
Merge pull request #185 from makeopensource/fix-submissions
RA341 Nov 9, 2024
0f0db5b
Added standard endpoints for sticky notes
kevinzhong930 Nov 10, 2024
a2cbecd
fixed mobile viewing for assignment pages for student and instructors
ashwaqaljanahi2021 Nov 10, 2024
499637b
fixed alignment and colors on assignment creation page
NeemZ16 Nov 10, 2024
968cbde
fixed colors and padding on instructor gradebook
NeemZ16 Nov 10, 2024
22aa0aa
added consistent padding to navbar and breadcrumbs
NeemZ16 Nov 10, 2024
2476314
added isadmin check in isAuthorized
RA341 Nov 10, 2024
de02646
Added a page to view pdf submissions
kevinzhong930 Nov 12, 2024
a674275
Fixed up CRUD endpoints for sticky notes
kevinzhong930 Nov 12, 2024
e8371d0
Added Authorization to the Sticky Notes router and updated Roles
kevinzhong930 Nov 12, 2024
e5d7cd8
Deleted comments and added deletedAt filtering
kevinzhong930 Nov 12, 2024
8dc951e
Updated button text
kevinzhong930 Nov 12, 2024
1f67e64
Removed extra console.log()
kevinzhong930 Nov 12, 2024
14099b3
fixed styling for gradebook pages
NeemZ16 Nov 12, 2024
717d000
Merge pull request #187 from makeopensource/142-fix-mobile-view-bug-o…
jessehartloff Nov 12, 2024
1a9610b
Merge pull request #192 from makeopensource/152-pdf-submission
jessehartloff Nov 12, 2024
e3b467b
Merge pull request #193 from makeopensource/154-sticky-notes-endpoints
jessehartloff Nov 12, 2024
ad02c8d
removing the submit button from assignments that are past the due date
yessicaq Nov 12, 2024
e177652
changed var name
RA341 Nov 12, 2024
e56eca8
updated styling of homepage
NeemZ16 Nov 12, 2024
da9d955
changed admin unauthorized response
RA341 Nov 12, 2024
eccf8ad
Merge pull request #188 from makeopensource/148-admin-user
jessehartloff Nov 12, 2024
8db0978
Added file to create the sticky-notes table
kevinzhong930 Nov 13, 2024
d980c97
Merge pull request #194 from makeopensource/fix-migration-error
jessehartloff Nov 13, 2024
4c0d852
Merge pull request #196 from makeopensource/145-redesign-pages
NeemZ16 Dec 3, 2024
696325a
Merge pull request #197 from makeopensource/158Disable-the-submission…
yessicaq Dec 3, 2024
ee84440
Update readme.md
jessehartloff Jan 29, 2025
213ff2e
Update readme.md
jessehartloff Jan 29, 2025
2847c8f
Update readme.md
jessehartloff Jan 29, 2025
32ff1d9
refactored docker build:
RA341 Feb 2, 2025
9059050
refactored ci: refactored and cleaned up workflow
RA341 Feb 2, 2025
71e3fe1
fixed some padding issues on homepage, centered navbar logo, and clea…
dvcabiya Feb 4, 2025
b5dee9a
Added submodule step to the README, since me and Chris both ran into …
dvcabiya Feb 4, 2025
b52f5c9
increased logo weight, fixed up margins on homepage and assignment pa…
dvcabiya Feb 5, 2025
0b78918
fixed weird margin thing i put in thinking it was good, and the annoy…
dvcabiya Feb 8, 2025
36d38ce
switched up padding/spacing for course card assignment list, set glob…
dvcabiya Feb 10, 2025
7f90b88
Make the improvements of color scheme, aesthetics and added the error…
SameepK Feb 10, 2025
89f4de2
made course page header padding less jank by switching system of butt…
dvcabiya Feb 11, 2025
ed74646
re-ordered addition to README
dvcabiya Feb 11, 2025
4b4216a
redid homepage header and buttons, started work on course card assign…
dvcabiya Feb 12, 2025
09999f7
updates the buttons for the homepage
SameepK Feb 13, 2025
b01f473
updated the code to change the @use to @import
SameepK Feb 13, 2025
b3e70f0
downgraded sass, fixed global.css spacing
dvcabiya Feb 13, 2025
ce20c09
updated new layout of buttons
SameepK Feb 14, 2025
fba2f79
added border to course cards, changed due/end date css, changed title…
dvcabiya Feb 14, 2025
1498289
removed weird compose.yml rule, made course cards have no message wit…
dvcabiya Feb 14, 2025
d65f96a
fixed weird compose.yml i made
dvcabiya Feb 15, 2025
3305d87
Merge pull request #201 from makeopensource/redesigned-homepage
jessehartloff Feb 15, 2025
4b015cd
Merge pull request #198 from makeopensource/build-improvements
jessehartloff Feb 15, 2025
934268e
Merge branch 'develop' into styling-improvements
dvcabiya Feb 15, 2025
c396064
Merge pull request #200 from makeopensource/styling-improvements
jessehartloff Feb 15, 2025
c270e24
setup for new course page, setup header sections and new buttons, alm…
dvcabiya Feb 20, 2025
6258d31
finished design for course page, added behavior for smaller screen (s…
dvcabiya Feb 20, 2025
d5c0bdd
fixed annoying white bit poking out from category title corner
dvcabiya Feb 20, 2025
7891b20
some dark mode changes
dvcabiya Feb 21, 2025
eefc96f
added "no assignments yet" text when no assignments created in class
dvcabiya Feb 21, 2025
fadb986
updated the student gradebook to match the figma layout
SameepK Feb 23, 2025
665cb1a
random, but made it so buttons have the pointer icon on hover.
dvcabiya Feb 24, 2025
d0133ab
fixed the error for the Course-Title
SameepK Feb 24, 2025
079c7eb
standardized no items yet message, tried a different thing for the na…
dvcabiya Feb 25, 2025
2beadaa
made title position consistent across home and course page
dvcabiya Feb 25, 2025
fcdd910
basically done. just added a new global variable that crushes padding…
dvcabiya Feb 25, 2025
aac3e0e
fixed how homepage looks on collapse
dvcabiya Feb 25, 2025
5d9688e
slight tweaks to course page to make header less janky on resize
dvcabiya Feb 25, 2025
d5a8407
converted edit assignment page to two column, started layout reworking
dvcabiya Feb 25, 2025
14fc107
altered textField and edit page to fit new color scheme
dvcabiya Feb 25, 2025
c5a7c35
just changed the hover behavior of buttons. hopefully an easy PR to a…
dvcabiya Feb 26, 2025
b301a84
created blank AddAssignmentModal in assignmentFormPage - 41
NeemZ16 Feb 26, 2025
167a8ac
starting function for category fetch
dvcabiya Feb 26, 2025
f576334
changes to due/start date picker, save and exit
dvcabiya Feb 28, 2025
cdcef7b
Merge branch 'develop' into #26-updated-footer-button-components
SameepK Feb 28, 2025
866d026
Merge branch 'develop' into #6-Color-scheme-and-aesthetics
SameepK Feb 28, 2025
603490c
fix workflow
RA341 Feb 28, 2025
f1c258f
added api url as build arg
RA341 Feb 28, 2025
14e62aa
updated ignore list
RA341 Feb 28, 2025
12a3b99
refactored example compose
RA341 Feb 28, 2025
a8982d1
fixed api image name
RA341 Feb 28, 2025
cd02177
fixed job name
RA341 Feb 28, 2025
db58d1e
added setup script
RA341 Feb 28, 2025
a0a4e6a
fixing example compose
RA341 Feb 28, 2025
7aa298b
updated readme
RA341 Feb 28, 2025
621a1f5
setup add problem and add grader section, fixed textField styling to …
dvcabiya Mar 1, 2025
f390c57
finished page. most add problem buttons are placeholders for now, the…
dvcabiya Mar 1, 2025
3c1a305
updated webpack, added docker build command
RA341 Mar 3, 2025
484eaf5
reverted nginx dockerfile, updated images to slim variants
RA341 Mar 3, 2025
3f15c2e
added nginx build
RA341 Mar 3, 2025
ebadc26
switched to alpine
RA341 Mar 3, 2025
f761451
updated the frontend for the Join Course Page
SameepK Mar 3, 2025
c394a30
removed redundant styling, and fixed mobile display for page
dvcabiya Mar 3, 2025
a71a82e
chooes files looks better than add files
dvcabiya Mar 3, 2025
cf8a8f9
created modal and reconfigured add assignment button to show modal - 41
NeemZ16 Mar 3, 2025
195519d
corrected two small errors, drop class option did not have correct cl…
dvcabiya Mar 3, 2025
a6af47e
Merge pull request #208 from makeopensource/#26-updated-footer-button…
dvcabiya Mar 3, 2025
f872c21
Merge branch 'develop' into #6-Color-scheme-and-aesthetics
dvcabiya Mar 3, 2025
03f036f
Merge pull request #209 from makeopensource/#6-Color-scheme-and-aesth…
dvcabiya Mar 3, 2025
0ff904d
Merge branch 'develop' into 33-redesigned-coursepage
dvcabiya Mar 3, 2025
5db958b
Merge branch 'develop' into 40-edit-assignment-page
dvcabiya Mar 3, 2025
8e638cd
added volume mounts
RA341 Mar 4, 2025
daf4335
removed volumes deletion
RA341 Mar 4, 2025
10c25a1
Changed one char, mismatched curly brace
dvcabiya Mar 4, 2025
9452e0a
Merge branch 'develop' into 33-redesigned-coursepage
dvcabiya Mar 4, 2025
eb0efa1
fixed some HUGE issues i made while fixing conflicts
dvcabiya Mar 4, 2025
c377110
added sameep's button color transition to global file
dvcabiya Mar 4, 2025
667170e
mismatched curlybrace
dvcabiya Mar 4, 2025
3303369
Merge branch 'develop' into 40-edit-assignment-page
dvcabiya Mar 4, 2025
3f6ae9b
started changes, small styling fixes
dvcabiya Mar 4, 2025
6dc4f9a
mostly done with wireframe just need to add category/student search, …
dvcabiya Mar 5, 2025
2a466ed
added key and searchbar. this is done, i'm just losing my mind trying…
dvcabiya Mar 5, 2025
5447616
completed modal and modal inputs styling - 41
NeemZ16 Mar 5, 2025
28c8c07
Merge branch 'develop' into 41-add-assignment-modal
NeemZ16 Mar 5, 2025
ad8a7ac
added disable handin checkbox
NeemZ16 Mar 5, 2025
201b477
added createCourseModal with skeletal structure - 42
NeemZ16 Mar 5, 2025
dfbf170
added get instructor endpoint
RA341 Mar 5, 2025
f19d9f0
added component functionality, working on automating dates - 42
NeemZ16 Mar 5, 2025
6a9044b
updated run commands
RA341 Mar 6, 2025
5ccbed6
fixed get grader by assignment id
RA341 Mar 6, 2025
c025cae
removed duplicate endpoint
RA341 Mar 6, 2025
fc87b0c
removed categories endpoint
RA341 Mar 6, 2025
5d3302a
Merge pull request #204 from makeopensource/33-redesigned-coursepage
RA341 Mar 6, 2025
b15f294
restored wait
RA341 Mar 6, 2025
9719eb2
Merge branch 'develop' into 40-edit-assignment-page
dvcabiya Mar 6, 2025
4620455
Merge branch 'develop' into 47-buttons-hover
dvcabiya Mar 6, 2025
3ea890c
Merge pull request #205 from makeopensource/46-mobile-layout
RA341 Mar 6, 2025
fa3c867
Merge pull request #206 from makeopensource/47-buttons-hover
RA341 Mar 6, 2025
c023e92
Merge pull request #211 from makeopensource/40-edit-assignment-page
RA341 Mar 6, 2025
b82a2df
Merge pull request #210 from makeopensource/fix-deployment
RA341 Mar 6, 2025
7dca654
Merge develop into 64-instructor gradebook
dvcabiya Mar 6, 2025
582b2fd
so close. no submission assignments now map. just need to do categor…
dvcabiya Mar 6, 2025
68c3c68
added buttons, category filter, finished styling. DONE ACTUALLY i cou…
dvcabiya Mar 7, 2025
c730462
removed dumb changes i made in global
dvcabiya Mar 7, 2025
6987aec
Merge branch 'develop' into #39-Updated-Join-course-Page
SameepK Mar 7, 2025
1907977
Merge branch 'develop' into #37-updated-Student-Gradebook
SameepK Mar 7, 2025
aac5db7
small styling changes to category
dvcabiya Mar 7, 2025
8baa16b
reverted coursepage styling
dvcabiya Mar 7, 2025
883151c
Merge pull request #219 from makeopensource/#37-updated-Student-Grade…
dvcabiya Mar 7, 2025
9deaca5
reverted course page styling, made minor changes to student gradebook…
dvcabiya Mar 7, 2025
68d9586
fixed back to course button
dvcabiya Mar 7, 2025
471e0d6
Merge branch 'develop' into #39-Updated-Join-course-Page
dvcabiya Mar 7, 2025
b74dbca
Merge pull request #218 from makeopensource/#39-Updated-Join-course-Page
dvcabiya Mar 7, 2025
952915d
resolve conflicts
dvcabiya Mar 7, 2025
1fae3e4
Merge pull request #215 from makeopensource/67-bug-fixes
RA341 Mar 7, 2025
76dfda5
Merge branch 'develop' into 41-add-assignment-modal
dvcabiya Mar 7, 2025
3606fed
resolve conflicts
dvcabiya Mar 7, 2025
bcf7677
Merge pull request #214 from makeopensource/41-add-assignment-modal
dvcabiya Mar 7, 2025
ddd8442
updated add grader code modal
SameepK Mar 7, 2025
27312ec
started wireframe, updated navbar, updated pagewrapper padding for fo…
dvcabiya Mar 7, 2025
c2bb1d9
Merge branch 'develop' into 65-updated-Add-Grader-Code-Modal
dvcabiya Mar 7, 2025
b67c4d5
automate dates component styling fixed - 42
NeemZ16 Mar 7, 2025
0e0d6c8
fixed light mode global toolbar username color - 42
NeemZ16 Mar 7, 2025
9eb888d
added back to course
dvcabiya Mar 7, 2025
0210bda
create course automate dates completed - 42
NeemZ16 Mar 8, 2025
ee48f04
Merge branch 'develop' into 42-create-course-modal
NeemZ16 Mar 8, 2025
0d82013
fixed text color on home page section headers - 42
NeemZ16 Mar 8, 2025
1d63aee
Merge pull request #221 from makeopensource/42-create-course-modal
NeemZ16 Mar 8, 2025
77aaa3c
finished problem mapping, metainfo, buttons
dvcabiya Mar 8, 2025
8890290
fixed grading mistake, ncag grading works 100%, all design is done, a…
dvcabiya Mar 8, 2025
acce0e4
Merge branch 'develop' into 63-student-submission
dvcabiya Mar 8, 2025
ca64638
Merge pull request #222 from makeopensource/65-updated-Add-Grader-Cod…
dvcabiya Mar 8, 2025
de04777
fixed issue where affirmation didn't appear
dvcabiya Mar 8, 2025
d7ba336
Merge branch '63-student-submission' of github.com:makeopensource/dev…
dvcabiya Mar 8, 2025
010b52a
completed textProblemModal - 62
NeemZ16 Mar 8, 2025
636ec9f
updated modal close button to pointer - 62
NeemZ16 Mar 8, 2025
6226c5c
Merge pull request #225 from makeopensource/62-add-text-problem-modal
NeemZ16 Mar 8, 2025
a9fbd28
Merge pull request #216 from makeopensource/64-instructor-gradebook
jessehartloff Mar 8, 2025
394e75d
Merge branch 'develop' into 63-student-submission
jessehartloff Mar 8, 2025
b830d32
Merge pull request #223 from makeopensource/63-student-submission
jessehartloff Mar 8, 2025
848bc23
Update containerAutoGraderForm.scss
dvcabiya Mar 8, 2025
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
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/**/node_modules
/logs
/devU-api/src/tango/tests/test_files
/devU-api/src/tango/tests/test_files
.env.*
50 changes: 50 additions & 0 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Builds DevU api
name: Build DevU api

on:
push:
paths:
- 'devU-api/**'
branches:
- develop # add more branches as needed

jobs:
build-api-docker:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
packages: write # to be able to publish docker image packages
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GHCR registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Convert image name to lowercase
run: |
original_string=${{ github.repository }}
echo "repo_url=$(echo $original_string | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Get Branch Name
id: get_branch
run: echo "::set-output name=branch_name::${GITHUB_REF#refs/heads/}"

- name: build api docker
run: |
IMAGE_NAME=ghcr.io/${{ env.repo_url }}/api:${{ steps.get_branch.outputs.branch_name }}
echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV

docker build . -f api.Dockerfile -t $IMAGE_NAME
docker push $IMAGE_NAME

- name: build tango docker
run: |
IMAGE_NAME=ghcr.io/${{ env.repo_url }}/tango:${{ steps.get_branch.outputs.branch_name }}
docker build ./tango -f ./tango/Dockerfile -t $IMAGE_NAME
docker push $IMAGE_NAME
52 changes: 52 additions & 0 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Builds DevU client
name: Build DevU client

on:
push:
paths:
- 'devU-client/**'
branches:
- develop # add more branches as needed

jobs:
build-client-docker:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
packages: write # to be able to publish packages
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GHCR registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Convert image name to lowercase
run: |
original_string=${{ github.repository }}
echo "repo_url=$(echo $original_string | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Get Branch Name
id: get_branch
run: echo "::set-output name=branch_name::${GITHUB_REF#refs/heads/}"

- name: build client docker
run: |
IMAGE_NAME=ghcr.io/${{ env.repo_url }}/client:${{ steps.get_branch.outputs.branch_name }}
echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV

docker build . -f client.Dockerfile -t $IMAGE_NAME
docker push $IMAGE_NAME

- name: build nginx
run: |
IMAGE_NAME=ghcr.io/${{ env.repo_url }}/nginx:${{ steps.get_branch.outputs.branch_name }}
echo "IMAGE_NAME=$IMAGE_NAME" >> $GITHUB_ENV

docker build . -f nginx.Dockerfile -t $IMAGE_NAME
docker push $IMAGE_NAME
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ node_modules/
./docker-compose.yml
/.idea
/.vscode
/logs
/logs
/*/node_modules
/*/package-lock.json
levi
14 changes: 14 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"branches": [
{
"name": "release"
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
"@semantic-release/git"
]
}
29 changes: 23 additions & 6 deletions api.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,45 @@
FROM node:16 as module_builder
FROM node:22-alpine AS module_builder

WORKDIR /tmp

COPY ./devu-shared .
COPY devU-shared .

RUN npm install && \
npm run clean-directory && \
npm run build-docker

FROM node:16
FROM docker.io/python:alpine AS config-builder

WORKDIR /config

RUN apk add --no-cache bash jq openssl \
&& pip install yq

COPY devU-api/scripts/ .

COPY devU-api/config/ ./config

RUN ./generateConfig.sh default.yml

FROM node:22-alpine

WORKDIR /app

COPY ./devU-api/package.json ./devU-api/package-lock.json ./
COPY ./devU-api/package.json ./

RUN npm install

COPY ./devU-api .

COPY --from=config-builder /config/default.yml ./config/default.yml

COPY --from=module_builder /tmp/devu-shared-modules ./devu-shared-modules

# Indicate that the api is running in docker; value here is irrelevant
ENV IS_DOCKER=0

ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
RUN chmod +x /wait

# TypeORM Migrations
CMD /wait && npm run typeorm -- migration:run && npm start

CMD /wait && npm run typeorm -- migration:run -d src/database.ts && npm start
13 changes: 6 additions & 7 deletions client.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
FROM node:16 as module_builder
FROM node:22-alpine AS module_builder

WORKDIR /tmp

COPY ./devu-shared .
COPY devU-shared .

RUN npm install && \
npm run clean-directory && \
npm run build-docker

FROM node:16
FROM node:22-alpine

WORKDIR /app

COPY ./devU-client/package.json ./devU-client/package-lock.json ./

COPY ./devU-client/package.json ./

RUN npm install

COPY ./devU-client/ .

COPY --from=module_builder /tmp/devu-shared-modules ./devu-shared-modules

RUN npm run build-local
CMD cp -r /app/dist/* /out
# build frontend during run so that we can modify baseurl via docker envoirment
CMD npm run --silent build-docker && rm -rf /out/* && cp -r /app/dist/* /out
1 change: 1 addition & 0 deletions devU-api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ build/
env/
.idea/
/devu-shared-modules
package-lock.json

config/*.yml
!config/test.yml
Expand Down
1 change: 1 addition & 0 deletions devU-api/@types/express/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ declare global {
// Auth Data
currentUser?: AccessToken // Deserialized access token
refreshUser?: RefreshToken // Deserialized refresh token
ownerId?: string // The owner of the requested resource(s)
}
}
}
59 changes: 45 additions & 14 deletions devU-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,48 @@ Once you've got these installed, we can build our container and run it

#### Note to run the postgres container locally using the command below

You have to modify ``devU-api/src/environment.ts``
You have to modify `devU-api/src/environment.ts`

change

``dbHost: (load('database.host') || 'localhost') as string``
`dbHost: (load('database.host') || 'localhost') as string`

to

``dbHost: 'localhost'``
`dbHost: 'localhost'`

This will probably be fixed in the future but for now the above steps are necessary

#### Using docker compose

We use [docker compose profiles](https://docs.docker.com/compose/profiles/) to selectively start services in the main docker-compose when developing.

Assuming you are in api dir `devU-api`, To start all api services except the api run

```
npm run api-services
```

To stop the services

```
npm run api-services-stop
```

Then install dependencies using

```
npm install
```

Once you've got all the dependencies installed you can run the project via

```
npm start
```

#### Manually:

```
docker run \
--name typeorm-postgres \
Expand All @@ -40,6 +70,7 @@ docker run \
```

Install all node dependencies. All of the database environment variables can change, and can be set as environment variables on your machine if you want to overwrite the defaults

```
docker run \
--name minio \
Expand All @@ -66,7 +97,7 @@ npm run generate-config
Run the initial migrations to setup our DB schema

```
npm run typeorm -- migration:run
npm run typeorm -- migration:run -d src/database.ts
```

Once you've got all the dependencies installed you can run the project via
Expand Down Expand Up @@ -166,30 +197,30 @@ To generate types for local development run the following commands (all commands

1. ```bash
cd ./devu-shared
```
```
2. ```bash
npm install
```
```
3. ```bash
npm run build-local
```

This will create a ``devu-shared-modules`` folder in ``devU-api`` and ``devU-client`` dir
This will create a `devu-shared-modules` folder in `devU-api` and `devU-client` dir

When developing if you need to create a new type,

1. create the type file in ``devu-shared/src/types/example.type.ts``
2. export the new type in ``devu-shared/src/index.ts``
1. create the type file in `devu-shared/src/types/example.type.ts`
2. export the new type in `devu-shared/src/index.ts`
3. rerun
```bash
npm run build-local
```

This will update the types in ``devU-api`` and ``devU-client`` folders.
This will update the types in `devU-api` and `devU-client` folders.

**Note if the types are not being detected by your IDE**

**Go to the ``devU-api/`` and ``devU-client/`` and run ``npm install`` in each folder to update the shared modules.**
**Go to the `devU-api/` and `devU-client/` and run `npm install` in each folder to update the shared modules.**

### Testing

Expand Down Expand Up @@ -226,19 +257,19 @@ I wouldn't recommend digging that far down as the of tests should be more human-
If the schema needs to be updated, you can do so by updating the models and running

```
npm run typeorm -- migration:generate -n generatedMigrationName
npm run typeorm migration:generate -- -d src/database src/migration/<generatedMigrationName>
```

Doing so will attempt to create an auto migration from any changes within the `src/models` directory and add it to `src/migrations`. If an auto migration is generated for you (always check your auto migrations), you can run it with the above migration command

```
npm run typeorm -- migration:run
npm run typeorm -- migration:run -d src/database.ts
```

And revert the latest migration with

```
npm run typeorm -- migration:revert
npm run typeorm -- migration:revert -d src/database.ts
```

### Configuration Options
Expand Down
Loading
Loading