This is a social network application built with Django, allowing users to register, login, create posts, follow other users, and interact with content through likes. The application features a clean and modern design, providing a seamless user experience.
- User Authentication: Users can register, log in, and log outs.
- Profile Management: Each user has a profile page displaying their posts and follower/following counts.
- Post Creation/Edit: Authenticated users scan create new posts.
- Like/Unlike Posts: Users can like or unlike posts, with real-time updates.s
- Follow/Unfollow Users: Users can follow or unfollow other users, with updates reflected on their profile.
- Pagination: Posts are paginated for better navigation, allowing users to browse through posts easily.
- Responsive Design: The application is designed to be mobiles-friendly, ensuring a good user experience on all devices.
- Django: A high-level Python web framework for rapid development.
- HTML/CSS: For structuring and styling the web pages.
- JavaScript: For asynchronous operations and dynamic content updates.
- Bootstrap: For responsive design and UI components.
- Python 3.x
- pip (Python package installer)
- Virtualenv (optional but recommended)
-
Clone the Repository:
git clone https://github.com/Sunnyio/Network.git cd Network
-
Create a Virtual Environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies:
pip install -r requirements.txt
-
Apply Migrations:
python manage.py migrate
-
Create a Superuser (optional, for accessing the admin panel):
python manage.py createsuperuser
-
Run the Development Server:
python manage.py runserver
-
Access the Application: Open your web browser and go to
http://127.0.0.1:8000/
.
- Register: Create a new account by clicking on the "Register" link.
- Login: Use your credentials to log in.
- Create Posts: After logging in, you can create new posts from the main page.
- Follow Users: Navigate to a user's profile and click the "Follow" button to follow them.
- Like Posts: Click the heart icon on any post to like or unlike it.
- View Profiles: Click on usernames to view their profiles and posts.
Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.