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.
- 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
/backend: Rust REST API & ETL pipeline./frontend: Next.js 14 Application.
- Docker & Docker Compose
- Rust (Cargo)
- Node.js & npm/yarn
-
Copy the
.env.examplefile to.env:cp .env.example .env
-
Start the local database (PostgreSQL) and cache (Redis) using Docker Compose:
docker compose up -d
Both backend and frontend contain Dockerfiles optimized for GCP Cloud Run. The Next.js frontend utilizes output: 'standalone' to minimize container image sizes.