Coder Social home page Coder Social logo

django_jwt_template's Introduction

Django JWT Template Project

This backend template is built to be paired and implemented with the React_JWT_Template project


Recommended to use a virtual environment to contain all the libraries used with this project.

Within the main project folder, run the terminal commands to create a virtual environment folder and scripts.

python3 -m venv venv

  (on Windows)
source venv/Scripts/activate

Check the docs for Apple/Unix systems


Once the template is cloned and the virtual environment is activated, then:

Install the required libraries from the requirements.txt file with the following command line in the terminal

pip install -r /path/to/requirements.txt

If done correctly, all the library files will reside in the venv/Lib file


Once the installation is complete, navigate to the core/ folder in the terminal that contains the file manage.py.

Run the following commands in the terminal to build your basic starting database:

python manage.py makemigrations

^^This command stages all the database information (or changes), but does not create or modify your database

python manage.py migrate

^^This command takes the staged information and creates / modifies your database


At this point, you can launch the server and make all the existing routes available to access via http://localhost:8000/. This is the root URL that other routes are built on (such as http://localhost:8000/accounts)

Run the following command to launch your Django server:

python manage.py runserver

The built-in Django admin page can be accessed via: http://localhost:8000/admin/. In order to access the admin page, you will need to create a superuser using the following command in the terminal:

python manage.py createsuperuser

Once those fields are filled out, you can successfully log into the admin page.

django_jwt_template's People

Contributors

rasky26 avatar

Watchers

 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.