Alpha Centauri is a centralized platform for the Interstellar Exploration Agency (IEA) — a system where explorers can record newly discovered planets across the galaxy.
This repository contains the backend API server built with Django and Django REST Framework. It handles authentication, data management, and business logic for the entire platform.
- Authentication – Register, login, and JWT-based session management
- Explorer Directory – Manage and browse registered explorers
- Planet Discoveries – Full CRUD operations for planet records
- Planet Classes – Commanders can manage classifications
- Dashboard – Provides statistics and recent activity data
| Technology | Version | Purpose |
|---|---|---|
| Django | 6.1 | Backend framework |
| Django REST Framework | 3.18.0 | API development |
| djangorestframework-simplejwt | 5.5.1 | JWT authentication |
| PostgreSQL | 16 | Production database |
| PyJWT | 2.13.0 | JWT encoding/decoding |
| psycopg | 3.3.4 | PostgreSQL adapter |
# Clone the repository
git clone https://github.com/ChildrenOfTheCommit/AlphaCentauri-Server.git
cd AlphaCentauri-Server
# Create and activate a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run migrations
python manage.py migrate
# Start the development server
python manage.py runserverThe API will be available at http://localhost:8000.