mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 12:51:09 -05:00
- Add complete backend/ directory with full Django application - Add frontend/ directory with Vite + TypeScript setup ready for Next.js - Add comprehensive shared/ directory with: - Complete documentation and memory-bank archives - Media files and avatars (letters, park/ride images) - Deployment scripts and automation tools - Shared types and utilities - Add architecture/ directory with migration guides - Configure pnpm workspace for monorepo development - Update .gitignore to exclude .django_tailwind_cli/ build artifacts - Preserve all historical documentation in shared/docs/memory-bank/ - Set up proper structure for full-stack development with shared resources
2.8 KiB
2.8 KiB
ThrillWiki Quick Start Guide
Prerequisites
- Python 3.8+
- PostgreSQL
- Node.js (for Tailwind CSS)
Setup Instructions
-
Clone the Repository
git clone <repository-url> cd thrillwiki -
Create Virtual Environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate -
Install Dependencies
pip install -r requirements.txt -
Database Setup
# Update database settings in thrillwiki/settings.py python manage.py migrate -
Create Superuser
python manage.py createsuperuser -
Install Frontend Dependencies
# Install Tailwind CSS npm install -
Environment Configuration
- Copy example environment file
- Update necessary settings
- Configure social auth providers
-
Run Development Server
python manage.py runserver
Key URLs
- Admin Interface:
/admin/ - Home Page:
/ - Parks List:
/parks/ - Rides List:
/rides/
Development Guidelines
-
Model Changes
python manage.py makemigrations python manage.py migrate -
Running Tests
python manage.py test -
Update Trending Content
python manage.py update_trending -
Update Park Statistics
python manage.py update_park_counts
Common Tasks
Adding a New Park
- Access admin interface
- Navigate to Parks section
- Click "Add Park"
- Fill required information
- Save
Adding a New Ride
- Access admin interface
- Navigate to Rides section
- Click "Add Ride"
- Fill required information
- Add roller coaster stats if applicable
- Save
Managing Photos
- Photos can be added to parks, rides, or companies
- Use the photo upload form on respective detail pages
- Set primary photo as needed
Moderating Reviews
- Access admin interface
- Navigate to Reviews section
- Review flagged content
- Take appropriate moderation action
Troubleshooting
Common Issues
-
Database Connection
- Verify PostgreSQL is running
- Check database credentials
- Ensure database exists
-
Media Upload Issues
- Check file permissions
- Verify media storage configuration
- Ensure proper file types
-
Social Auth
- Verify provider credentials
- Check callback URLs
- Review auth settings
Getting Help
- Check existing documentation in
/docs - Review error logs
- Contact development team
Best Practices
-
Code Style
- Follow PEP 8
- Use type hints
- Document functions and classes
-
Git Workflow
- Create feature branches
- Write descriptive commits
- Keep changes focused
-
Testing
- Write unit tests
- Test all new features
- Verify existing functionality