This is a Django-based social media application developed for educational purposes. It provides basic social networking functionalities such as user registration, friend requests, and friend lists.
- Python installed on your system
git clone https://github.com/yourusername/social-media-app.git
cd social-media-app
# Create a virtual environment
python -m venv env
# Activate the virtual environment
# For macOS/Linux
source env/bin/activate
# For Windows
.\env\Scripts\activate
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
This is a simple Django project configured to run with Docker Compose. It includes a Dockerfile for building the Django application image and a docker-compose.yml file to orchestrate the services.
Before you begin, ensure you have the following installed:
- Docker: Installation Guide
- Docker Compose: Installation Guide
Follow these steps to run the Django application with Docker Compose:
-
Clone this repository:
git clone https://github.com/aniketverma11/SocialMediaRequest.git
-
Navigate to the project directory:
cd SocialMediaRequest
-
Build the Docker containers:
docker-compose build
-
Start the containers:
docker-compose up
-
Once the containers are running, open your web browser and go to http://localhost:8000 to view the Django application.
To stop the containers, press Ctrl + C
in the terminal where they are running.
To stop and remove the containers, networks, and volumes created by Docker Compose, run:
docker-compose down