P'Social is a social networking backend project built with Django and Django REST Framework (DRF). It offers a powerful and scalable API that supports essential social media features, including user authentication, profiles, posts, comments, likes, friend management, and search functionality.
- User registration, authentication, and profile management.
- Two-Factor Authentication (2FA) support using authenticator apps like Google Authenticator for enhanced security.
- Social interactions: Posts, comments, likes.
- Friendship system: Follow, unfollow, and manage requests for private/public pages.
- Fully documented API endpoints for easy integration and testing.
- Docker support for consistent environments.
# just docker file
docker build . -t "webapplication"
docker run --name web_application --env-file .env --network host -d webapplication
# all services in development
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
# all services in production
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -ddocker logs web_applicationdocker exec -it web_application bashdocker exec web_application python manage.py migratedocker exec -it web_application python manage.py createsuperuserdocker exec -it django-social-db-1 psql -U user -d social