Resume Builder with JWT Auth
85
Fix: Disable refresh token for inactive user(https://github.com/jazzband/djangorestframework-simplejwt/pull/814/commits/76741ff9ae347c8e7d52101c4bc11985f3940992)
Add the refresh token to the outstanding db after refreshing(https://github.com/jazzband/djangorestframework-simplejwt/pull/696)
The Resume API provides a platform for users to create and manage their resumes. It supports account creation, issues JWT tokens needed for resume management, and enforces a throttling limit of 200 requests per day for all user types. Users can create, update, and delete their resumes through this API.
Note: To enhance security, JWTs are now actively managed:
Token Blacklisting: JWTs can be blacklisted, preventing their further use.
Scheduled Token Deletion: Blacklisted tokens are automatically deleted after 1 day. This process is managed by a scheduled task that runs daily at 00:00 UTC, utilizing Celery Beat for scheduling and Celery Worker for task execution. Redis serves as the message broker, and the database backend stores task results.
Follow these instructions to set up and run the API:
Install Dependencies:
python -m pip install -r requirements.txt
Helper Commands:
python manage.py flushpython manage.py reset_dbpython manage.py clean_pycpython manage.py makemigrationspython manage.py migratepython manage.py createcachetablepython manage.py migrate django_celery_beatpython manage.py migrate django_celery_resultspython manage.py runserver 8000ngrok http --domain=diverse-intense-whippet.ngrok-free.app 8000celery -A resume_api worker --reload --pool=solo --loglevel=infocelery -A resume_api beat --loglevel=infoTo build and start the API using Docker, follow these steps:
Build and Start the Containers:
docker-compose up --build
Visit the API at http://localhost:8000/api/schema/swagger-ui/.
Content type
Image
Digest
sha256:c5ba9365d…
Size
84.1 MB
Last updated
almost 2 years ago
docker pull user620/resume_api:v6.0.0