The overall source code for this project can be accessed here: Python(Version=3.9), Django(Version = 4.0.2), Django REST Framework(Version=3.13.1), and REST Framework Simple JWT(Version=5.0.0) at the Backend.Though I initially wrote the JWT authentication backend from scratch, I eventually settled for Django REST Framework Simple JWT.Īs briefly pointed out in the introduction, we'll be using: On the backend, I was tired of using cookies and storing them in the browser to track users so I opted for JSON Web Tokens (JWT). This Dev Ed's youtube tutorial sold me all out! I decided to write about my experiences and challenges along the way and how I edged them since resources on SvelteKit are relatively scarce compared to React, Vue, and Angular but surprisingly faster without compromising SEO. I had no experience working with it so I decided to learn it. I thought of Svelte and/or it's "extension", SvelteKit with SSR. I had had some upleasant attempts in learning React in the past but a fairly pleasant one with Vue. The major battle I had was choosing a suitable JavaScript frontend framework/library. I thought of making the architecture strictly client-server while maintaining Django at the backend. A pivotal aspect of the app is Authentication and Authorization system since the data are confidential and only authorized personnel should be allowed access. However, an upgrade was recently requested which made me tend to re-develop the application from the ground up. It also demonstrates the new paradigm called #transitionalapps, a fusion of #SPA and #MPA, arguably propounded by in this talk.Ī while ago, I built a data-intensive application that collects, analyzes, and visualizes data using Django, Plotly, and Django templating language. This is the first of a series of articles that will give a work-through of how to build a secure, robust, and reliable Authentication and Authorization system using modern web technologies viz: Django, Django REST Framework, JWT, and SvelteKit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |