Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎧 SoundScene

Micro Podcast / Song Storytelling Platform
Share stories. Drop theories. Celebrate music β€” one voice clip at a time.

License Build Linting Typing


🌟 Concept

SoundScene is your social space for short-form audio.
Upload clips (≀2 minutes) to tell stories, drop fan theories, or review songs.
It’s like audio Twitter β€” made for entertainment lovers.


πŸ”₯ Key Features

  • πŸŽ™οΈ Upload voice notes or music snippets (up to 2 mins)
  • ✍️ Add captions, genres, and tags
  • ❀️ Like, πŸ’¬ comment, and πŸ” share content
  • πŸ“ˆ Discover trending or genre-specific content
  • πŸ” Tag and genre-based content filtering

🧱 Tech Stack

βœ… Backend – Django + GraphQL + PostgreSQL

Tool Description
Django Core backend framework
Graphene-Django For GraphQL APIs
PostgreSQL Relational DB for structured data
DRF (optional) For file upload/admin if needed
django-storages + AWS S3 / Cloudinary Audio file hosting
JWT Auth Auth via django-graphql-jwt
UV Fast Python packaging (written in Rust)
mypy Static typing and code quality
ruff Fast Python linter & formatter

πŸ§ͺ Dev Tools

  • uv β€” dependency resolution & virtualenv in one
  • mypy β€” static type checking
  • ruff β€” linting & style enforcement

βœ… Frontend – Angular (v20+)

Tool Description
Angular SPA Framework
Apollo Angular GraphQL client integration
Ngx-Audio-Player Custom audio playback UI
Drag-and-Drop Uploads For voice/music clip uploads
Modular Components Reusable UI + service-based architecture

βš™οΈ Project Structure (Monorepo Friendly)

soundscene/
β”‚
β”œβ”€β”€ .github/                  # GitHub Actions CI
β”‚   └── workflows/
β”‚       └── ci.yml
β”‚
β”œβ”€β”€ backend/                  # Django + GraphQL backend
β”‚   β”œβ”€β”€ gql/                  # GraphQL schema entrypoint
β”‚   β”‚   β”œβ”€β”€ __init__.py
β”‚   β”‚   └── schema.py
β”‚   β”œβ”€β”€ soundscene/           # Django project config
β”‚   β”œβ”€β”€ users/                # Django app for user logic
β”‚   β”‚   β”œβ”€β”€ migrations/
β”‚   β”‚   β”œβ”€β”€ schema/           # GraphQL types & mutations
β”‚   β”‚   β”œβ”€β”€ admin.py
β”‚   β”‚   β”œβ”€β”€ apps.py
β”‚   β”‚   β”œβ”€β”€ managers.py
β”‚   β”‚   β”œβ”€β”€ models.py
β”‚   β”‚   β”œβ”€β”€ serializers.py
β”‚   β”‚   β”œβ”€β”€ services.py
β”‚   β”‚   β”œβ”€β”€ signals.py
β”‚   β”‚   β”œβ”€β”€ utility.py
β”‚   β”‚   β”œβ”€β”€ validators.py
β”‚   β”‚   └── tests/
β”‚   β”‚       └── __init__.py
β”‚   β”œβ”€β”€ .env, .env.*          # Environment config files
β”‚   β”‚   β”œβ”€β”€ .env.db.local     # DB config used when running locally (PostgreSQL)
β”‚   β”‚   β”œβ”€β”€ .env.db.docker    # DB config used when running inside Docker container
β”‚   β”œβ”€β”€ Dockerfile            # Dockerfile for backend
β”‚   β”œβ”€β”€ manage.py             # Django management script
β”‚   β”œβ”€β”€ main.py               # Entrypoint if using ASGI
β”‚   β”œβ”€β”€ pyproject.toml        # Project metadata for uv
β”‚   β”œβ”€β”€ mypy.ini              # Type checking config
β”‚   β”œβ”€β”€ ruff.toml             # Linting config
β”‚   β”œβ”€β”€ uv.lock               # Dependency lockfile (uv)
β”‚   β”œβ”€β”€ pytest.ini, conftest.py  # Testing config
β”‚   └── .dockerignore         # Backend Docker ignore file
β”‚
β”œβ”€β”€ frontend/                 # Angular frontend
β”‚   β”œβ”€β”€ .vscode/              # VS Code settings
β”‚   β”œβ”€β”€ node_modules/
β”‚   β”œβ”€β”€ public/               # Static files
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   └── app/              # Angular app root
β”‚   β”‚       β”œβ”€β”€ index.html
β”‚   β”‚       β”œβ”€β”€ main.ts
β”‚   β”‚       └── styles.css
β”‚   β”œβ”€β”€ angular.json          # Angular config
β”‚   β”œβ”€β”€ package.json          # Frontend dependencies
β”‚   β”œβ”€β”€ tsconfig.*.json       # TypeScript config
β”‚   └── Dockerfile (planned)  # Placeholder for frontend Dockerfile
β”‚
β”œβ”€β”€ docker-compose.yml        # Root Docker Compose file
β”œβ”€β”€ README.md                 # Project readme
β”œβ”€β”€ .gitignore                # Root gitignore
└── .editorconfig             # Editor config

πŸš€ Getting Started

1. Clone the Repo

git clone https://github.com/Mofathy183/soundscene.git
cd soundscene

2. Run with Docker

Make sure Docker is installed, then

docker-compose up --build

This will:

  • πŸ”§ Build and run the backend using your custom Dockerfile
  • 🐘 Launch a PostgreSQL container
  • ♻️ Mount your backend code for live reloading

Setup Backend

1. Install with uv

cd backend
uv venv
# Uses uv to install locked dependencies from uv.lock or requirements.lock
uv sync --locked

2. Setup environment variables files

.env

# File: backend/.env

# Optional: Python path override
PYTHONPATH=.

# Django Core Settings
DJANGO_SECRET_KEY=your-secret-key
DEBUG=True

# Comma-separated list of allowed hosts
ALLOWED_HOSTS=localhost,db

.env.db.local

# File: backend/.env.db.local

DJANGO_ENV=local

# Local PostgreSQL DB Configuration
POSTGRES_DB=
POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_HOST=localhost
POSTGRES_PORT=5432

.env.db.docker

# File: backend/.env.db.docker

DJANGO_ENV=docker

# Docker PostgreSQL DB Configuration
POSTGRES_DB=
POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_HOST=db
POSTGRES_PORT=5432

3. Run migrations and start server

uv run manage.py makemigrations  
uv run manage.py migrate
uv run manage.py runserver 

4. Testing

pytest

# If you drop and recreate the database,
# this command will rebuild the test DB
pytest --reuse-db --create-db

5. Code Quality

Lint

ruff format .

ruff check .

Type Check

mypy .

πŸ“¦ Deployment Tips

Use docker-compose.prod.yml for production environments (optional)

Host backend with services like Render, Railway, or Fly.io

Deploy frontend with Vercel, Netlify, or Firebase

Use AWS S3 or Cloudinary for production audio uploads

🀝 Contributing

Fork the project

  1. Create a feature branch:

    git checkout -b feat/awesome-feature
    
  2. Commit your changes:

    git commit -m '✨ Add awesome feature'
    
  3. Push to GitHub:

    git push origin feat/awesome-feature

πŸ“„ License

This project is licensed under the MIT License

πŸ™Œ Acknowledgements

πŸ“¬ Contact

Have feedback or ideas?

πŸ“§ Reach out: mofathy1833@gmail.com


βœ… What I improved

  • Cleaned up formatting and indentation
  • Added missing "Project Structure" section
  • Clarified Docker usage
  • Added licensing and contribution details
  • Smoothed out environment variable instructions
  • Added spacing for readability

Let me know if you'd like:

  • GitHub Actions CI file
  • .dockerignore templates
  • A badge generator for versioning or Docker

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages