Skip to content
This repository was archived by the owner on Oct 24, 2026. It is now read-only.

High Level Design | Data Jobs Module

Engramar Bollas edited this page Mar 10, 2025 · 1 revision

Implementation Plan for Data Jobs Module

1. Overview

The Data Jobs Module is a feature on ThePusoProject web app (https://www.thepusoproject.ph/datajobs) that enables users to post job openings related to data fields, such as Data Engineering, Data Analysis, and more. This implementation plan outlines the key components, development phases, and deployment strategy for integrating this module into the website.

2. Objectives

  • Enable authenticated users to post job opportunities.
  • Provide a structured layout for displaying job postings.
  • Ensure a simple and accessible user interface using Bootstrap or Pico CSS.
  • Store job data securely using SQLite3.
  • Implement an API for job posting and retrieval.

3. System Architecture

3.1 Technology Stack

Component Technology
Frontend HTML, CSS, JavaScript, Bootstrap/Pico CSS
Backend Flask
Database SQLite3

4. Features & Functionality

4.1 User Roles & Permissions

User Role Permissions
Regular User - Request to post job openings
- Edit and delete their own job posts
Admin - Approve job postings before they go live
- Edit and delete any job post

4.2 Job Posting Workflow

  1. Regular User submits a job post request.
  2. Admin reviews and approves the request.
    • If approved → The job post becomes publicly visible.
    • If rejected → The post remains unpublished.
  3. Regular Users can edit or delete only their own job posts.
  4. Admins can edit or delete any job post at any time.

4.3 API Endpoints

Endpoint Method Description
/create_job_post POST Request to create a job post (Regular Users)
/fetch_job_posts GET Retrieve all approved job posts
/approve_job_post POST Admin approves a pending job post
/edit_job_post/<id> PUT Edit a job post (Regular Users - if it's theirs, Admins - any post)
/delete_job_post/<id> DELETE Delete a job post (Regular Users - if it's theirs, Admins - any post)

4.4 Table Fields

  • Users can fill out a form with job details:
    • Job Title
    • Job Category
    • Work Setup (Remote, Hybrid, On-site)
    • Company Name
    • Location
    • Salary Range
    • Job Post Link
  • Data validation is applied before submission.

4.5 Class Diagram and Relationships

Class Diagram - TPP DataJobs

  • User (1) → (M) JobPost (One user can create multiple job posts)
  • Admin (1) → (M) Approval (An admin can approve/reject multiple posts)
  • JobPost (1) → (1) Approval (Each job post must be approved/rejected by an admin)

5. System Architecture

5.1 High-Level Design

  • Frontend: HTML/CSS/JS-based UI with Bootstrap/Pico CSS for styling.
  • Backend: Flask-based API to handle job postings.
  • Database: SQLite3 for job storage.
  • Authentication: Users must be logged in to post a job.
  • Routing: Flask routes handle job posting and retrieval.

6. Current Bugs & Errors

Issue Description Status
Missing Elements in datajobs.html Buttons, search bar, and other UI components are missing from the source code. Needs Fixing
No Access to Database File Unable to check the database manually using DB Browser for SQLite or cloud-based database servers. Needs clarification. Needs Investigation
Lack of Project Structure Documentation Volunteers need more context on the overall structure from the main developer. Requires Documentation
Login System Inconsistencies After logging in, users are redirected to /dashboard, but the top-right navigation still shows "Login / Signup" instead of the user’s session. Navigating to Data Jobs still displays "Login / Signup." Needs Revamp

7. Authentication & Role Management Revamp Proposal

  • Improve session management to ensure users stay logged in across all pages.
  • Update navbar dynamically to reflect login status.
  • Restrict job posting feature only to logged-in users.
  • Implement user roles:
    • Regular Users: Can request job postings, edit/delete their own posts.
    • Admins: Can approve posts, edit/delete all posts.
  • Implement an approval system where Admins must approve a job post before it becomes public.