Skip to content
Riteshmaurya07Public

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

87 Commits

Folders and files

Repository files navigation

Devfolio OS Logo

Devfolio OS

A modern, multi-user SaaS platform for developers.

Features • Tech Stack • Getting Started • Architecture • Commands


Devfolio OS is an all-in-one developer portfolio and productivity platform. Built from the ground up as a multi-user SaaS, it provides developers with the tools to sync their coding platform statistics, build interactive roadmaps with AI, craft smart resumes, and compete on global leaderboards.

Features

  • Authentication: Secure email/password login and seamless GitHub OAuth integration via HTTPOnly JWTs.
  • Platform Sync: Connect to external platforms (GitHub, LeetCode, etc.) and auto-sync your problem-solving statistics and streaks using background workers.
  • Global Leaderboards: Rank developers dynamically using a custom Developer Score algorithm based on synchronized activity.
  • Social Networking: Send friend requests, build connections, and track mutual connections.
  • Smart Resumes: A drag-and-drop resume builder complete with version history (append-only JSONB versioning) and PDF export capabilities.
  • AI Advisor: Engage with an LLM-powered assistant to generate personalized, multi-week learning roadmaps or to conduct mock interviews.

Tech Stack

Frontend

Backend & Data

Background & Infrastructure


Getting Started

Follow these steps to get Devfolio OS running on your local machine.

1. Prerequisites

Ensure you have the following installed on your machine:

2. Configuration

Clone the repository and set up your environment variables:

git clone https://github.com/your-org/devfolio-os.git
cd devfolio-os

# Create your local environment file
cp .env.example .env.local

Note: Open .env.local and add your LLM API Keys (Gemini/Anthropic) to test the AI Advisor features.

3. Launch the Platform

We provide an all-in-one bash utility to manage the entire application lifecycle. Run:

bash start_local.sh

What this script does automatically:

  1. Verifies your Docker installation and checks if required ports are free.
  2. Builds the frontend, backend, and celery images.
  3. Provisions the PostgreSQL database and Redis instance.
  4. Waits for health checks and automatically runs Alembic Database Migrations.

4. Access the Application

Once the launch sequence completes, access the system at:


Command Reference (start_local.sh)

Managing the application lifecycle is easy with the included utility script:

Command Description
bash start_local.sh start Start all services (default behavior).
bash start_local.sh start --fresh Nuke the database, wipe all images, and perform a full cold rebuild.
bash start_local.sh stop Gracefully stop all services (retains database state).
bash start_local.sh restart Stop and start services.
bash start_local.sh logs Tail the Docker Compose logs for all services.
bash start_local.sh shell backend Drop into an interactive shell inside the specified container.
bash start_local.sh db Drop into an interactive PostgreSQL psql shell.
bash start_local.sh migrate Manually auto-generate and apply Alembic migrations.

Database Migrations (Alembic Workflow)

To modify database models or apply migrations directly in the backend container:

  1. Generate a migration: docker compose exec backend alembic revision --autogenerate -m "description"
  2. Apply migrations: docker compose exec backend alembic upgrade head

Architecture Overview

Devfolio OS uses a Domain-Driven Design (DDD) approach in the backend for strict modularity, organized around the following bounded contexts:

  • users: Core identity, authentication, and JWT handling.
  • platforms: Background integration connectors for LeetCode and GitHub.
  • leaderboard: Caches and ranks the Developer Score.
  • social: Mutual connections and friend requests.
  • notifications: WebSocket and long-polling ready events powered by Celery Beat.
  • resumes: Managing resume metadata and its heavily versioned JSON structures.
  • ai / roadmaps: Specialized domains for communicating with Large Language Models.

All state transitions and domain logic are thoroughly abstracted away from Routers and Repositories into dedicated Service classes, ensuring long-term maintainability and simple unit testing.

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages