# capsules-backend **Repository Path**: chjgfg/capsules-backend ## Basic Information - **Project Name**: capsules-backend - **Description**: 时间胶囊项目的快速高效REST API,采用Rust + Axum构建。设计注重性能、可扩展性和简洁性。与Next.js前端无缝衔接。https://www.youtube.com/watch?v=NrsxkX_xgns - **Primary Language**: Rust - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-07-14 - **Last Updated**: 2026-07-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Capsule Backend [![Watch the video](https://img.youtube.com/vi/NrsxkX_xgns/maxresdefault.jpg)](https://youtu.be/NrsxkX_xgns) The Backend for **Capsule** — a sleek, responsive interface built using **Axum (Rust)**. It connects to the Capsule Frontend (powered by Next.js) and currently works without authentication. --- ## 🚀 Tech Stack - Axum - Rust - Tokio - SQLx (for PostgreSQL) - dotenvy --- ## 🛠️ Getting Started ### Prerequisites - Rust (latest stable version) - PostgreSQL - sqlx-cli for managing migrations ### Installation Clone the repo and install dependencies: ```bash git clone https://github.com/AarambhDevHub/capsules-backend.git cd capsule-backend cargo build ``` ### Setup Environment Variables Create a .env file in the root directory: ```bash DATABASE_URL=postgres://postgres:yourpassword@localhost/capsule_db ``` ### Run Database Migrations Make sure your database is running, then run: ```bash sqlx database create sqlx migrate run ``` ### Run the Development Server ```bash cargo run ``` The API server will be live at: 👉 `http://localhost:8000` ## 💬 Join Our Community 📢 Discord: [Discord Link](https://discord.gg/cDAbFuAC) ## ☕ Support the Project If you find this project helpful, consider buying me a coffee! [Buy Me a Coffee](https://buymeacoffee.com/aarambhdevhub)