JWT Authentication in Express.js using Passport.js

In the previous post, we created an express.js application step by step. If you haven’t read that post, I suggest you do it because the basic steps are covered in the post. Therefore, you can check it out from here: https://nepcodex.com/2019/09/create-an-express-application-with-database/. Also, since we are trying to build a REST API, we will remove many … Read more

Create an Express Application with Database

In this post, we will learn how to create an express application with a database. Not only this, but also we will include a templating engine. For the record, I don’t say you have to do the way I do here, but you will get the gist of what to do. So, let’s begin by … Read more

Django Rest API – From Scratch – Part 2

Let’s serialize our own models This is the continuation of part 1 of my tutorial series. So, if you haven’t viewed part 1 of the tutorial, then you can find it here: https://nepcodex.com/blog/2019/07/django-rest-api-from-scratch-part-1/ Register We have already created our todo app, hence we need to register it in our settings.py file. Creating own model Now, … Read more

Django Rest API – From Scratch – Part 1

Let’s create a todo app quickly Project Setup Create a directory where all your project files and environment exist. You shouldn’t install any python module globally because every project has different dependencies. The dependencies should be installed in the scope of a project. Therefore, you should create a virtual environment and activate it as following. … Read more