python-subscribe-email-newspaper-app
This project is a simple email subscription application. Here is a solution for this application using django, celery, celery-beat and rabbitmq in the backend
Tech Stack
Core Tech: Python
Backend Service: Django, Django Rest Framework
Database: Postgre
Task Management and Broker: Celery, RabbitMQ, Redis
Task Monitoring: Flower
Run Locally using Docker
Clone the project
git clone https://github.com/koksalkapucuoglu/python-subscribe-email-newspaper-app.git
Go to the project directory
cd python-subscribe-email-newspaper-app
Build
docker-compose build
Setup database tables by running migrations
docker-compose run --rm app python manage.py makemigrations
docker-compose run --rm app python manage.py migrate
Create superuser to login Django admin panel
docker-compose run --rm app python manage.py createsuperuser
Run project
docker-compose up
Run Locally
Clone the project
git clone https://github.com/koksalkapucuoglu/python-subscribe-email-newspaper-app.git
Go to the project directory
cd python-subscribe-email-newspaper-app
Create python env
python -m venv env
Activate enviroment
source env/Scripts/activate
or
env\Scripts\activate
Install requirements
pip install -r requirements.txt
pip install -r requirements_dev.txt
Detect django model changes
python manage.py makemigrations
Apply django model changes
python manage.py migrate
Create superuser to login Django admin panel
python manage.py createsuperuser