Backend Case Study

DGDrive Backend API

DGDrive is a highly scalable REST API designed to clone Google Drive's functionality with advanced features like Role-Based Access Control (RBAC), multi-layered location assignments, and detailed activity tracking.

Technology Stack

Node.jsExpressSQLiteJWTJest

System Architecture

Runtime

Node.js 18+

Framework

Express 4

Database

SQLite via better-sqlite3

Auth

JWT with access and refresh tokens

The Challenges

Implementing fine-grained Role-Based Access Control (RBAC) across multiple entity types.

Ensuring reliable token management and secure authentication for diverse endpoints.

The Solutions

Created complex M:N junctions for dynamic user roles, permissions, and location access mappings.

Integrated JWT-based authentication with bcrypt hashing and refresh token generation.

Key Results & Metrics

01

RBAC Implementation

02

Detailed Activity Logging

03

REST API architecture