Skip to content

Widle-Studio/energy-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Energtx - Global Energy Metrics Platform

This is the Energtx project monorepo. It features a Rust (Axum) backend and a Next.js frontend, fully configured for Google Cloud Platform (GCP) Cloud Run.

Architecture

  • Backend: Rust + Axum + SQLx
  • Frontend: Next.js 14 + Tailwind CSS + Shadcn UI
  • Database: PostgreSQL 15+ (GCP Cloud SQL)
  • Cache: Redis (GCP Memorystore)
  • Deployment: GCP Cloud Run via GitHub Actions

Directory Structure

  • /backend: Rust REST API & ETL pipeline.
  • /frontend: Next.js 14 Application.

Local Development

Prerequisites

  • Docker & Docker Compose
  • Rust (Cargo)
  • Node.js & npm/yarn

Getting Started

  1. Copy the .env.example file to .env:

    cp .env.example .env
  2. Start the local database (PostgreSQL) and cache (Redis) using Docker Compose:

    docker compose up -d

GCP Cloud Run Ready

Both backend and frontend contain Dockerfiles optimized for GCP Cloud Run. The Next.js frontend utilizes output: 'standalone' to minimize container image sizes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors