A project to:
This is a brownfield project, i.e. a project that is continued over multiple terms. It was started in F19, worked on in S20, and will continue in F20.
If you are a student in CS56, you can get an API key from your mentor.
Mentors, can get API keys by visiting https://developer.ucsb.edu/.
Once you have the API key, you need to do this:
Copy localhost.json.SAMPLE
to localhost.json
.
Edit localhost.json
and put in the correct value of the key.
Each time you fire up a terminal window to run the app, you need to do
source env.sh
That will define SPRING_APPLICATION_JSON
to have the extra values defined in localhost.json
Then run mvn spring-boot:run
SPRING_APPLICATION_JSON
Google OAuth client-id and client-secret
UCSB API key
MongoDB username/password for ArchivedCourseData
application.properties
If there are feature flag values in the localhost.json.SAMPLE, you may choose the value appropriate to the feature(s) you are working on.
For example, if there
is a feature flag "app.feature.multiple_schedules":"false"
you may want to
set that to true
if you are working on that feature. Otherwise, you can
leave it as false. These values are typically set to false in application.properties
anyway, so you can typically also just delete those lines in your localhost.json
or
heroku.json
.
Type this | to get this result |
---|---|
mvn package |
to make a jar file |
mvn spring-boot:run |
to run the web app |
application.properties
Value | Sample Value | Explanation |
---|---|---|
app.start_quarter |
S20 |
The first quarter shown in quarter selection menus. |
app.end_quarter |
F17 |
The last quarter shown in quarter selection menus |
app.start_quarter
and app.end_quarter
The order given is the order in which the quarters appear in the menus. If they are given in reverse order, the orders will be reversed.
For example if start is S20 and end is F17, the quarters will appear in reverse chronological order. If start is F17 and end is S20, they will appear in chronological order.
The oldest quarter for which data is available is F83