I designed a Twitter-like social network website for making posts, following users and "liking" posts, using Django, Python, JavaScript, HTML, CSS, Bootstrap.
Starter code was provided for this project, which I completed in the context of Harvard UniversityX's CS50 Introduction to Web Programming with Python and JavaScript course.
View a short video demo of the project.
I implemented the following features:
Requirements:
- New Post: Users who are signed in should be able to write a new text-based post by filling in text into a text area and then clicking a button to submit the post.
- All Posts: The “All Posts” link in the navigation bar should take the user to a page where they can see all posts from all users, with the most recent posts first.
- Profile Page: Clicking on a username should load that user’s profile page.
- Following: The “Following” link in the navigation bar should take the user to a page where they see all posts made by users that the current user follows.
- Pagination: On any page that displays posts, posts should only be displayed 10 on a page. If there are more than ten posts, a “Next” button should appear to take the user to the next page of posts (which should be older than the current page of posts). If not on the first page, a “Previous” button should appear to take the user to the previous page of posts as well.
- Edit Post: Users should be able to click an “Edit” button or link on any of their own posts to edit that post.
- “Like” and “Unlike”: Users should be able to click a button or link on any post to toggle whether or not they “like” that post.
First, make sure you have Django installed, then:
- Run python manage.py makemigrations network to make migrations for the network app.
- Run python manage.py migrate to apply migrations to the database.
- Run python manage.py runserver to start up the Django web server, and visit the website in your browser.
Please visit the Harvard CS50W website for more information about the requirements for the project. Please do not directly use the source code as it is only for reference. Plagiarism is strictly prohibited by both Harvard University and the edX platform. See academic honesty for details.