CareerCompass

CareerCompass Project

This project was developed as part of the Web Application Development II module.

The implementation places significant emphasis on frontend development aspects, including responsive design principles, accessibility standards, user interface best practices, and effective data visualization techniques.

Instance Teardown

Note that the Github Pages frontend and Digital Ocean backend was taken down on 29 November 2024. Please contact the team on telegram if there are any issues.

Course Requirements

If hosted on cloud: include the URL to the first page of your application:

https://zhicheng-lucas.github.io/CareerCompass/

If using public GIT repository: Include the URL to your Git repo:

https://github.com/ZhiCheng-Lucas/CareerCompass

Provide step-by-step instructions on:

How to set up your application based on the submitted file(s):

The submission package contains the following components:

Frontend Setup The main entry point for the frontend application is located at:

frontend/src/App.vue

The landing page can be found in

frontend/src/views/Home.vue

Component code can be found in

frontend/src/components/...

To run the local frontend, you have two available options:

  1. Local Frontend using deployed Backend:
cd frontend
npm install
npm run dev

You will see something like:

VITE v5.4.9  ready in 2161 ms
➜  Local:   http://localhost:5173/CareerCompass/
➜  Network: use --host to expose
➜  press h + enter to show help

Use the link provided.

  1. Local Frontend and local backend:
    • Prepare OpenAPI Key:
      • Ensure openai_api_key.txt in the same folder as your docker-compose.yml file
    • Prepare MongoDB Connection String:
      • Ensure mongodb_connection_string.txt in the same folder as your docker-compose.yml file
    • Build and Run:
      • Navigate to the CareerCompass folder where the docker-compose.yml file is located
      • Run: docker-compose up –build
      • Access the backend application at http://localhost:8000
    • Modify frontend API configuration:
      • Go to frontend/src/services/api.ts
      • Uncomment localhost:8000 and comment the orca-app
          // For devs
          const API_URL = "http://localhost:8000";
          // For prod purposes.
          // const API_URL = 'https://orca-app-8ua27.ondigitalocean.app';
        
    • Start frontend:
        cd frontend
        npm install
        npm run dev
      
    • Access the frontend at the link provided from npm run dev.

If there are any username/password details, include them in this file:

If there are issues, please do not hesitate to contact our team via telegram.

General CareerCompass Project Deployment Information

Overview

CareerCompass is deployed across multiple platforms:

Frontend Deployment

Primary Deployment (GitHub Pages)

Main URL: https://zhicheng-lucas.github.io/CareerCompass/

Automated Deployment Process

How it works

  1. Push changes to the main branch
  2. GitHub Actions automatically:
    • Builds the Vue.js application
    • Deploys to GitHub Pages
  3. Changes are live within minutes

Access Management

Backend Deployment

Dashboard URL: https://cloud.digitalocean.com/
Production URL: https://orca-app-8ua27.ondigitalocean.app/

Deployment Process

Infrastructure Management

Setup Instructions

  1. Prepare OpenAPI Key:

    • Create a file named openai_api_key.txt in the same folder as your docker-compose.yml file.
    • Add the api key to this file.
    • See pinned in our telegram group.
    • Important: Do not push this file to GitHub. It should already be listed in the .gitignore file.
  2. Prepare MongoDB Connection String:

    • Create a file named mongodb_connection_string.txt in the same folder as your docker-compose.yml file.
    • Add your MongoDB connection string to this file.
    • See pinned in our telegram group.
    • Important: Do not push this file to GitHub. It should already be listed in the .gitignore file.
  3. Build and Run the Project:

    • Navigate to the CareerCompass folder where the docker-compose.yml file is located.
    • Run the following command:
        docker-compose up --build
      
  4. Accessing the Application:

    • Once the containers are up and running, you can access the application at http://localhost:8000

Sample Endpoints

Try the following endpoints to test the application: