Skip to content

samagra44/stackoverflow-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Stack Overflow Clone

stackoverflow-768x576

Project Overview:

This project is a StackOverflow clone developed using Python and Django, featuring a comprehensive set of functionalities commonly found in a question-and-answer platform. The application combines Django's powerful backend capabilities with HTML and CSS for the frontend to create an interactive and user-friendly experience. This web application is a replica of Stack Overflow, built using Python, Django, HTML, and CSS. Here's an in-depth guide to the project's features:

1. Basic Project Setup with Django

  • Created a new Django project.
  • Configured project settings including database setup, static files, and templates.

2. Creating Frontend with HTML and CSS

  • Developed the frontend of the application using HTML and CSS to create a user-friendly interface.

    SS1

3. Making Admin Page and Database

  • Set up the Django admin page for managing database records.
  • Defined database models to store user profiles, questions, answers, comments, and more.

4. User Registration, Login, and Logout

  • Implemented user authentication with features for user registration, login, and logout.

SS2

SS3

5. Uploading Profile Picture and Profile Information

  • Enabled users to upload profile pictures.
  • Created forms to collect and display user profile information.

6. Editing Profile Details

  • Implemented functionality for users to edit their profile details.

SS4

7. Post Question Detail

  • Developed the ability for users to post questions with details such as title, description, and tags.

SS6

8. Post Question in More Detail

SS5

  • Enhanced the question posting feature to include more detailed information.

9. Updating Answers and Deleting Answers

  • Enabled users to update and delete their answers.

10. Comment Feature

  • Implemented a commenting system for users to add comments to questions and answers.

SS7

11. Making Rich Text Editor

  • Integrated a rich text editor for users to format their questions, answers, and comments.

SS7

12. Adding User Restrictions

  • Implemented user restrictions to control access to certain features based on user roles.

13. Upvote and Downvote the Question Feature

  • Implemented the ability for users to upvote and downvote questions.

SS6

14. Search Feature

  • Developed a search feature to allow users to search for questions based on keywords, tags, or content.

How to Run the Project

  1. Clone the repository:

    git clone https://github.com/samagra44/StackoverflowClone.git
  2. Install dependencies:

    pip install -r requirements.txt
  3. Apply migrations:

    python manage.py makemigrations
  4. Migrate the changes:

     python manage.py migrate
  5. Create Super USer:

    python manage.py createsuperuser
    
  6. Run the development server:

    python manage.py runserver
  7. Access the application at http://localhost:8000.

Feel free to explore and use the application as you would with Stack Overflow!

Contribution

Contributions are welcome! If you'd like to contribute to the project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature-new-feature.
  3. Commit your changes: git commit -m 'Add new feature'.
  4. Push to the branch: git push origin feature-new-feature.
  5. Submit a pull request.

Thank you for contributing!