Assignment For Backend Developer Internship - Merjo Innovation Labs
Assignment For Backend Developer Internship - Merjo Innovation Labs
Tasks at Hand
2. Create an Authentication system for users to login and logout using JWT
a. You're not allowed to use any third party library for JWT authentication like
djangorestframework-simplejwt, djangorestframework-jwt, etc.
b. You can use any library to generate JWT token like pyjwt, etc.
c. If you're not familiar with JWT, read about it here
4. A blog post can have multiple comments. Design a model for comments with the
following fields:
a. Content
b. Author (User)
c. Created At
d. Updated At
5. Create an API to create a blog post. Only authenticated users should be able to create a blog
post.
6. Create an API to create a comment on a blog post. Only authenticated users should be able
to create a comment.
7. Create an API to list all blog posts. Anyone should be able to access this API.
8. Create an API to list all comments on a blog post. Anyone should be able to access this API.
9. Create an API to update a blog post. Only the author of the blog post should be able to
update it.
Note:
1. Please create a new branch for your solution and create a pull request to merge it with the
master branch.
2. Please add a README.md file with instructions to run your project.
3. Please add a requirements.txt file with all the dependencies of your project.
4. Please use sqlite as the database for your project.
5. Please use Django 4.0 or above for your project.