Simple-Web-App Tailwind Templates

Simple Web App

A simple fullstack web application featuring user authentication and basic CRUD operations for products. Built with Rust (Actix Web) on the backend and React + Tailwind CSS on the frontend. Fully containerized with Docker for easy deployment.

E-commerce Admin Panel

A minimal e-commerce admin panel built with Rust (backend) and React (frontend).

Features

  • Secure admin authentication
  • Product management (CRUD operations)
  • Clean, minimal, and mobile-friendly UI
  • Docker deployment ready

Tech Stack

Backend

  • Rust with Actix-web framework
  • PostgreSQL database
  • JWT authentication
  • Docker

Frontend

  • React
  • Tailwind CSS
  • Axios for API calls
  • React Router for navigation

Project Structure

.
├── backend/           # Rust backend
│   ├── src/
│   ├── Cargo.toml
│   └── Dockerfile
├── frontend/         # React frontend
│   ├── src/
│   ├── package.json
│   └── Dockerfile
└── docker-compose.yml

Getting Started

Prerequisites

  • Rust (latest stable)
  • Node.js (v16 or later)
  • Docker and Docker Compose
  • PostgreSQL

Development Setup

  1. Clone the repository

  2. Start the backend:

    cd backend
    cargo run
    
  3. Start the frontend:

    cd frontend
    npm install
    npm run dev
    

Docker Deployment

docker-compose up --build

API Documentation

Authentication

  • POST /api/auth/login - Admin login
  • POST /api/auth/logout - Admin logout

Products

  • GET /api/products - List all products
  • POST /api/products - Create new product
  • PUT /api/products/:id - Update product
  • DELETE /api/products/:id - Delete product

License

MIT

Top categories

Loading Svelte Themes