Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

thundermiracle/ec-rust-ts

Repository files navigation

EC-Rust-TS

A modern e-commerce application built with Rust backend and Next.js frontend, managed as a monorepo using Nx.

πŸ—οΈ Architecture

This project follows a clean architecture pattern with clear separation of concerns:

  • Backend: Rust with Axum web framework, SQLite database, and async/await patterns
  • Frontend: Next.js 15 with React 19, TypeScript, Tailwind CSS, and Radix UI components
  • Monorepo: Managed with Nx for efficient development workflows

πŸ“ Project Structure

ec-rust-ts/
β”œβ”€β”€ app/
β”‚ β”œβ”€β”€ backend/ # Rust backend (Axum + SQLite)
β”‚ └── frontend/ # Next.js frontend (React + TypeScript)
β”œβ”€β”€ package.json # Root package.json with workspace scripts
└── nx.json # Nx configuration

πŸš€ Getting Started

Prerequisites

  • Node.js >= 18.0.0
  • Rust (latest stable version)
  • pnpm (recommended package manager)

Installation

  1. Clone the repository:
git clone <repository-url>
cd ec-rust-ts
  1. Install dependencies:
pnpm install

Development

Start both frontend and backend:

pnpm dev

Start individual services:

Frontend only:

pnpm frontend:dev

Backend only:

pnpm backend:dev

Building

Build all applications:

pnpm build

Build individual applications:

pnpm frontend:build
pnpm backend:build

πŸ”§ Available Scripts

Root Level Scripts

  • pnpm dev - Start all applications in development mode
  • pnpm build - Build all applications
  • pnpm test - Run all tests
  • pnpm lint - Lint all applications

Frontend Scripts

  • pnpm frontend:dev - Start frontend development server
  • pnpm frontend:build - Build frontend for production
  • pnpm frontend:start - Start frontend production server
  • pnpm frontend:lint - Lint frontend code

Backend Scripts

  • pnpm backend:dev - Start backend development server
  • pnpm backend:build - Build backend for production
  • pnpm backend:test - Run backend tests
  • pnpm backend:watch - Watch mode for backend development

πŸ› οΈ Technology Stack

Backend

  • Framework: Axum (Rust web framework)
  • Database: SQLite with SQLx
  • Runtime: Tokio (async runtime)
  • Serialization: Serde

Frontend

  • Framework: Next.js 15 with App Router
  • Runtime: React 19
  • Styling: Tailwind CSS
  • UI Components: Radix UI
  • Icons: Lucide React

Development Tools

  • Monorepo: Nx
  • Package Manager: pnpm
  • Linting: ESLint
  • Type Checking: TypeScript

πŸ“– Documentation

For detailed architecture information, see the backend documentation.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /