A single application website built using django, javascript and custom API's and appropriate error handling.
- Users can register and login to the website.
- Logged in users can:
- View all posts.
- Create new posts
- View users profiles.
- Edit one's own posts.
- Like and dislike any posts.
- Follow and Unfollow other users.
- View and make comments on any posts.
- Filter posts based on who they follow.
- Anonymous user can:
- View all posts.
- View all comments.
- View users profiles.
- clone or download the repo and
cdinto the directory. - Run
python manage.py makemigrations networkto make migrations for thenetworkapp. - Run
python manage.py migrateto apply migrations to your database. - Run
python manage.py runserverto run the server in your local machine.
GET /comment/<int:id>sending aGETrequest to/comment/idwhereidis the id of the post whose comments you want. It will return the json representation of the comment if it exists.PUT /editPost/<int:id>sending aPUTrequest to/editPost/idwhereidis the id of the post you are trying to modify, is used to modify status of each post.POST /comment/<int:id>toPOSTa comment request to/comment/idwhereidis the id of the post you are trying to comment on. This requires just the comment body to be submitted though the request of a logged in user.