Lazygram project is a copy of Instagram make with python Django and Reactjs, is a simply, fast and functional social network to interconect with the world.
In production: www.lazygram.online
It is very simply to use, you can do the following:
- Create your profile in Lazygram app.
- Upload your posts and follow your friends!
- Like, comment and save your favorite posts.
- Watch the premiere films in lazymovies and more!
To starting, this command will install the dev dependencies and will setup your lazygram environment.
But first you need create your environment variables into an .env file.
# General
SECRET_KEY="Your secret key"
DJANGO_ADMIN_URL="Your admin page url"
# Prod
DJANGO_DEBUG=False
DJANGO_ALLOWED_HOSTS=".example.online"
CONN_MAX_AGE=60
REDIS_URL="redis://127.0.0.1:6379/0"
# Security
DJANGO_SECURE_SSL_REDIRECT=True
DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS=True
DJANGO_SECURE_HSTS_PRELOAD=True
SECURE_CONTENT_TYPE_NOSNIFF=True
DJANGO_SECURE_CONTENT_TYPE_NOSNIFF=True
# Email
DJANGO_DEFAULT_FROM_EMAIL="example <[email protected]>"
DJANGO_SERVER_EMAIL="<[email protected]>"
DJANGO_EMAIL_SUBJECT_PREFIX="[example]"
# Anymail (Mailgun)
MAILGUN_API_KEY="Your api key"
MAILGUN_DOMAIN="<[email protected]>"
Before, into a .envs/ create a new folder called .production with two files calleds .django and .postgres and write:
# .django
# Redis
REDIS_URL=redis://redis:6379/1
# Flower
CELERY_FLOWER_USER="Your user"
CELERY_FLOWER_PASSWORD="Your password"
# .postgres
# PostgreSQL
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_DB=lazygram
POSTGRES_USER="Your user"
POSTGRES_PASSWORD="Your password"
docker-compose -f local.yml build | docker-compose -f local.yml up
# Base
pytz==2022.1
python-slugify==6.1.0
Pillow==9.2.0
psycopg2==2.9.3 --no-binary psycopg2
# Django
django==4.0.2
# Cors for use react
django-cors-headers==3.12.0
# DjangoRESTFramework
djangorestframework==3.13.0
# Environment
django-environ==0.8.1
# Json Web Token
PyJWT>=2.4.0
djangorestframework-simplejwt
# Passwords security
argon2-cffi==21.2.0
# Static files
whitenoise==6.1.0
# Celery
redis>=3.0.0,<=4.0.0
django-redis==5.1.0
celery==5.2.7
flower==1.0.0
-r ./base.txt
# Debugging
ipdb==0.13.7
# Testing
mypy==0.971
pytest==7.1.0
pytest-sugar==0.9.4
pytest-django==4.5.1
factory-boy==3.2.0
# Code quality
flake8==4.0.0
# PRECAUTION: avoid production dependencies that aren't in development
-r ./base.txt
gunicorn==20.0.4
# Email
django-anymail[mailgun]==8.5
For more information, visit the following documentation:
- Sign up/in
- In this app
- With your google account
- Session and Token authtentication
- Follow your favorites accounts.
- Like
- Comment
- Save
- [] Dark-mode
- [] Direct messages
- [] Stories
- [] Reels
- [] Share posts
For more information, read the following: Features in production | development
BETA.