A social media platform where users can create accounts, share posts, follow other users, and interact with content through likes and comments.
Follow the steps below to set up the project locally:
-
Clone the repository:
git clone https://github.com/yourusername/social-media.git cd social-media -
Create and activate a virtual environment:
-
Windows:
python -m venv venv venv\Scripts\activate
-
macOS/Linux:
python3 -m venv venv source venv/bin/activate
-
-
Install the required dependencies:
pip install -r requirements.txt
-
Apply database migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
Once the project is set up, you can access the platform via your browser at http://127.0.0.1:8000/ (default for Django's development server). Here's what you can do after logging in:
- Register a new account or log in with an existing account.
- Customize your profile by adding a profile picture and bio.
- Search for other users to connect with.
- Create and delete posts.
- Like posts from your followers or friends.
- Follow users to see their posts in your feed.
- Unfollow users if you no longer want to see their posts.
- Explore the news feed to see posts from followed users.
- Log out when you're done using the platform.
- User authentication: Registration, login, logout.
- Profile management: Edit profile, upload profile picture.
- Post management: Create and delete posts.
- Follow/Unfollow functionality.
- Likes and Comments on posts.
- User search functionality.
- Responsive design for both mobile and desktop.
- Fork the repository.
- Create a feature branch (
git checkout -b feature-name). - Commit your changes (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature-name). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Your Name
Email: your.email@example.com
Project Link: https://github.com/yourusername/social-media