Giter Club home page Giter Club logo

drfauthproject's Introduction

Django Rest Framework Authentication with Dj-Rest-Auth

This repository contains the code for my Medium article on Authentication and authorization in Django RESTful APIs using Dj-Rest-Auth with Gmail server for sending verification emails to users. A CRUD app example was used.

To Run on Localhost:

  • Have Python and pip installed on your local machine

Running the Django project:

Create an isolated environment for the project with virtualenv. You can install virtualenv with the following command:

sudo pip install virtualenv

Create a new directory for the project:

mkdir myproject && cd myproject

Create a virtual environment for the project:

virtualenv env

Then, activate it:

source env/bin/activate

Clone the project from GitHub:

git clone https://github.com/J-rayX/drfauthproject

Install Django and Django REST Framework:

pip install django djangorestframework

Finally, cd into the drfauthproject folder and run the project:

python manage.py runserver

Go to http://localhost:8000/ to see if the API is up and running.

Now, you can follow the article on Medium to learn how to implement authentication and authorization for your Django REST APIs. You will also learn how to use Gmail smtp server to send verification and password-reset emails to users.

We move! ๐Ÿ’ช

drfauthproject's People

Contributors

j-rayx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.