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
cd
into the directory. - Run
python manage.py makemigrations network
to make migrations for thenetwork
app. - Run
python manage.py migrate
to apply migrations to your database. - Run
python manage.py runserver
to run the server in your local machine.
GET /comment/<int:id>
sending aGET
request to/comment/id
whereid
is 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 aPUT
request to/editPost/id
whereid
is the id of the post you are trying to modify, is used to modify status of each post.POST /comment/<int:id>
toPOST
a comment request to/comment/id
whereid
is 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.