https://github.com/aarambhdevhub/capsules-backend
https://github.com/aarambhdevhub/capsules-backend
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aarambhdevhub/capsules-backend
- Owner: AarambhDevHub
- Created: 2025-04-12T12:19:05.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-12T12:27:49.000Z (6 months ago)
- Last Synced: 2025-04-12T13:43:03.689Z (6 months ago)
- Language: Rust
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Capsule Backend
[](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)