This repository contains the codebase for Zoomedia, a simplified social network. Follow the steps below to set up the project locally.
Make sure you have the following dependencies installed on your machine:
- Python 3.10
virtualenv
- Docker
- Docker Compose
- Clone the Repository and Navigate to Project Directory
git clone https://github.com/alishb80/zoomedia.git
cd zoomedia
- Create and Activate the Virtual Environment
virtualenv -p python3.10 venv
source venv/bin/activate
- Install Dependencies
pip install -r requirements_dev.txt
pip install -r requirements.txt
- Create the Environment File
cp .env.example .env
Make any necessary configurations in the newly created .env
file.
- Run Database Migrations
python manage.py migrate
- Start the Development Server
docker-compose -f docker-compose.dev.yml up -d
python manage.py runserver
- Running Celery Tasks You can run Celery tasks to handle asynchronous processing in the background.
celery -A zoomedia.tasks worker -l info --without-gossip --without-mingle --without-heartbeat
celery -A zoomedia.tasks beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
Now, you can access the Zoomedia application by visiting http://localhost:8000
in your browser.
For more information and documentation, refer to the following resources:
Feel free to explore and customize the Zoomedia project to fit your needs. Happy coding!