Overview
GenLayer Points is a full-stack application built with:- Backend: Django 4.2+ (Python)
- Frontend: Svelte 5 with Vite
- Database: PostgreSQL (production) / SQLite (development)
- Authentication: Sign-In With Ethereum (SIWE)
Prerequisites
Before you begin, ensure you have the following installed:- Python 3.8+ - Backend runtime
- Node.js 16+ - Frontend build tools and dependencies
- PostgreSQL (optional) - Production-grade database
- Git - Version control
- MetaMask or compatible wallet - For authentication testing
Quick Start
Set up the backend
See Backend Setup for detailed instructions:
Set up the frontend
See Frontend Setup for detailed instructions:
Access the application
- Frontend: http://localhost:5173
- Backend API: http://localhost:8000
- Admin Panel: http://localhost:8000/admin
Project Structure
Development Workflow
Branch Strategy
main- Production releases onlydev- Main development branchfeature/*- Feature branches (based ondev)bugfix/*- Bug fix branches (based ondev)
Workflow Steps
-
Create a feature branch:
- Make your changes and test locally
-
Run tests:
-
Commit your changes:
-
Push and create pull request:
Then create a PR targeting the
devbranch.
Common Issues
Port Already in Use
If port 8000 or 5173 is already in use:Database Migrations
If you encounter migration errors:Node.js Environment
The frontend requires activating the Python virtual environment first because the project uses
nodeenv to manage Node.js within the Python environment.Next Steps
Backend Setup
Detailed Django backend configuration
Frontend Setup
Svelte 5 frontend development
Architecture
System architecture overview
Deployment
AWS deployment guide