Skip to content

dailybruin/oink-new

Repository files navigation

Oink - Package Management System

A Django application for managing article packages with Google Drive integration.

Project Structure

oink/
├── packages/                 # Main Django app (renamed from 'core')
│   ├── models.py            # Package and GoogleCredential models
│   ├── views.py             # Authentication views (Google OAuth)
│   ├── package_views.py      # Package CRUD views (renamed from packages_views.py)
│   ├── admin.py             # Django admin configuration
│   ├── forms.py             # Package forms
│   ├── drive.py             # Google Drive API integration
│   ├── urls.py              # URL routing
│   └── migrations/          # Database migrations
├── templates/
│   ├── packages/            # Package-related templates
│   └── components/          # Reusable template components
├── oink_project/            # Django project settings
│   ├── settings.py          # Main settings file
│   ├── urls.py             # Root URL configuration
│   └── wsgi.py             # WSGI configuration
├── keys/                    # Google service account credentials
├── staticfiles/             # Collected static files
└── manage.py               # Django management script

Setup

  1. Install dependencies:

    pip install
  2. Create .env file with required settings:

    SECRET_KEY=your-secret-key
    DJANGO_DEBUG=1
    GOOGLE_CLIENT_ID=your-google-client-id
    GOOGLE_CLIENT_SECRET=your-google-client-secret
    EMAIL_DOMAIN=media.ucla.edu
    GOOGLE_SERVICE_ACCOUNT_FILE=path/to/service-account.json
    
  3. Run migrations:

    python manage.py migrate
  4. Start development server:

    docker-compose up --build

About

new kerckhoff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published