ucsb-cs156-s24 / proj-organic-s24-5pm-3

https://ucsb-cs156-s24.github.io/proj-organic-s24-5pm-3/
0 stars 1 forks source link

ucsb-cs156/proj-organic

Deployments

Type Link
prod https://organic.dokku-00.cs.ucsb.edu/
qa https://organic-qa.dokku-00.cs.ucsb.edu/

W24 Production Deployments

Team Link
w24-6pm-1 https://organic.dokku-09.cs.ucsb.edu/
w24-6pm-2 https://organic.dokku-10.cs.ucsb.edu/
w24-6pm-3 https://organic.dokku-11.cs.ucsb.edu/
w24-6pm-4 https://organic.dokku-12.cs.ucsb.edu/

W24 QA Deployments

Team Link
w24-6pm-1 https://organic-qa.dokku-09.cs.ucsb.edu/
w24-6pm-2 https://organic-qa.dokku-10.cs.ucsb.edu/
w24-6pm-3 https://organic-qa.dokku-11.cs.ucsb.edu/
w24-6pm-4 https://organic-qa.dokku-12.cs.ucsb.edu/

Description

This is a full rewrite of the application https://github.com/brownfield-team/anacapa-github-linker, which has been deployed as https://ucsb-cs-github-linker.herokuapp.com for several years.

The application provides instructional staff and students the ability to work with Github Organizations for courses.

Core MVP Features

This epic contains the features that replace the core functions of managing course rosters; all of the instructors currently using the tool need this feature set. Further, for most current users (e.g. for UCSB courses CMPSC 9, 16, 24, 32, 148), this feature set is sufficient to meet current needs.

This matches current functionality with one exception, where we are fixing a design flaw in the original app: instead of treating "staff" as a special case of students, having staff is built in right from the start as a specific feature.

Repo Creation

The next set of features is for individual repo creation, and matches current functionality.

Team Creation

This is an existing feature, but enhanced based on experience with the MVP feature in the current app.

Team repo creation

New features

Configuration

The GitHub actions script to deploy the Storybook to QA requires some configuration; see docs/github-actions.md for details.

If these repos are not yet setup, see the setup steps in docs/storybook.md.

Setup before running application

Before running the application for the first time, you need to do the steps documented in docs/oauth.md.

Otherwise, when you try to login for the first time, you will likely see an error such as:

Authorization Error; Error 401: invalid_client; The OAuth client was not found.

Getting Started on localhost

Then, the app should be available on http://localhost:8080

If it doesn't work at first, e.g. you have a blank page on http://localhost:8080, give it a minute and a few page refreshes. Sometimes it takes a moment for everything to settle in.

If you see the following on localhost, make sure that you also have the frontend code running in a separate window.

Failed to connect to the frontend server... On Dokku, be sure that PRODUCTION is defined.  On localhost, open a second terminal window, cd into frontend and type: npm install; npm start;

Accessing swagger

To access the swagger API endpoints, use:

To run React Storybook

Accessing Database Console