Skip to content

Commit

Permalink
Merge branch 'staging' into code-analysis-backend
Browse files Browse the repository at this point in the history
* staging:
  Migrate Trofos API endpoints from endpoints.ts to environment file
  Fix Trofos fetch job bug
  Add try-catch block for GitHub Project fetch job
  Update project management visualizations
  Fix formatting
  Add fetch Trofos backlog function
  Add fetch Trofos sprint function
  Update Trofos API endpoints to Trofos production server
  Create a function to fetch a single Trofos project
  Add Trofos registration check in backend cron job
  Create fetch jobs for Trofos course and projects
  Create boilerplate code for Trofos cron job
  Add pagination to Octokit REST API calls
  Change import ordering
  Add course update API call logic for Trofos integration
  Add front end button and modal for Trofos integration
  Update course schema with Trofos REST API fields
  • Loading branch information
rjkoh committed Oct 18, 2024
2 parents 4eac941 + dc741af commit 22a5d65
Show file tree
Hide file tree
Showing 9 changed files with 847 additions and 282 deletions.
4 changes: 3 additions & 1 deletion backend/app.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import cors from 'cors';
import { config } from 'dotenv';
import express, { Express } from 'express';
import setupCodeAnalysisJob from './jobs/codeAnalysisJob';
import setupGitHubJob from './jobs/githubJob';
import setupJiraJob from './jobs/jiraJob';
import setupTrofosJob from './jobs/trofosJob';
import accountRoutes from './routes/accountRoutes';
import assessmentRoutes from './routes/assessmentRoutes';
import courseRoutes from './routes/courseRoutes';
Expand All @@ -14,7 +16,6 @@ import teamSetRoutes from './routes/teamSetRoutes';
import userRoutes from './routes/userRoutes';
import codeAnalysisRoutes from './routes/codeAnalysisRoutes';
import { connectToDatabase } from './utils/database';
import setupCodeAnalysisJob from './jobs/codeAnalysisJob';

const env = process.env.NODE_ENV ?? 'development';
config({ path: `.env.${env}` });
Expand All @@ -23,6 +24,7 @@ const setupApp = async () => {
await connectToDatabase();
setupGitHubJob();
setupJiraJob();
setupTrofosJob();
setupCodeAnalysisJob();
};
setupApp();
Expand Down
Loading

0 comments on commit 22a5d65

Please sign in to comment.