Skip to content

This repository is related to creating a social media site, where we will be having the feature of social media like instagram, facebook etc.

Notifications You must be signed in to change notification settings

manishkrojha0/social_media_site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

Social Media Site

  • 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.

Installation and Setup

  • 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

  • test cases to test the urls and endpoints of the project.
    python manage.py test core.test_cases
    

Docker

  • 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

Deployment

API Endpoints

About

This repository is related to creating a social media site, where we will be having the feature of social media like instagram, facebook etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published