Skip to content

WillardDev/ScanLedger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

ScanLedger MVP

ScanLedger is a modern web application built with Next.js, FastAPI, PostgreSQL, and Redis.

Tech Stack

  • Frontend: Next.js (TypeScript) + Axios
  • Backend: Python FastAPI + Uvicorn + Pydantic
  • Database: PostgreSQL 15
  • Cache: Redis 7
  • Orchestration: Docker Compose

Getting Started

Prerequisites

  • Docker and Docker Compose installed on your machine.
  • Make (optional, for using the Makefile shortcuts).

Installation & Setup

  1. Build the containers:

    make build
  2. Start the services:

    make up
  3. Access the application:

Useful Commands

  • make up: Start all services in detached mode.
  • make down: Stop and remove all containers.
  • make build: Build or rebuild services.
  • make watch: Start services and follow logs in real-time.
  • make migrate: Run database migrations.
  • make clean: Deep reset of the Docker environment.
  • make logs: View real-time logs from all containers.
  • make ps: List running containers.

Project Structure

.
└── app/
    ├── backend/            # FastAPI source code
    │   ├── Dockerfile
    │   ├── main.py
    │   └── requirements.txt
    ├── frontend/           # Next.js source code
    │   ├── Dockerfile
    │   ├── pages/
    │   ├── package.json
    │   └── tsconfig.json
    ├── docker-compose.yml  # Docker orchestration
    ├── Makefile            # Shortcut commands
    └── README.md           # Project documentation

Environment Variables

Default environment variables are configured in docker-compose.yml. For production, ensure you use a .env file and update the security settings.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 62.8%
  • Python 19.8%
  • Makefile 8.3%
  • CSS 6.4%
  • Dockerfile 1.5%
  • Mako 0.8%
  • JavaScript 0.4%