- This is a social media platform built with Django and Django Rest Framework (DRF). The application allows users to create accounts, create and edit their profiles, follow and unfollow other users, add posts and view posts and like or comment on the post.
- Clone this repository
git clone https://github.com/manishkrojha0/social_media_site.git
- Navigate to the project directory
cd social_media_site
- Create a new virtual environment:
python -m venv venv
- Install project dependencies
pip install -r requirements.txt
- Run the migrations file by command
python manage.py migrate
- Run the application
python manage.py runserver
- test cases to test the urls and endpoints of the project.
python manage.py test core.test_cases
-
A Dockerfile and docker-compose.yml file have been provided for easy deployment. To deploy the application using Docker, follow these steps:
- Clone this repository
git clone https://github.com/manishkrojha0/social_media_site.git
- Navigate to the project directory
cd social_media_site
- Run this command for creating the Docker image.
docker build -t social_media_platform .
- Run this commant to build the multiple Docker images if you want.
docker-compose build
- Run this command to start the Docker container
docker-compose up
- Run the Docker container:
docker run -p 8000:8000 social_media_platform
- Access the application at http://localhost:8000
- Clone this repository
- Deployment has been done on render, link to my deployed url - https://minsta-ymk1.onrender.com/admin
- You have to go through the postman api collections, I've mentioned below.
- POSTMAN API COLLECTIONS - social_media_site