Skip to content

garydev10/drf-gis-jwt-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django REST GIS App with JWT & Swagger

Overview

A simple demo site and REST API for below features.

TODO

  • Address normalization, geocode / reverse geocode, etc.

Features

  • admin page
  • Swagger API doc and test
  • user register, login, logout
  • location GIS Point CRUD
  • JWT authentication and token refresh
  • devconatiner config with postGIS backend on Docker Desktop with WLS2

Note

  • It is a Development version that use HTTP. Production version should use HTTPS
  • Production version should disable swagger / Django REST API tester
  • Swagger API doc and test

Installation

Install and Activate Python VEnv

python3 -m venv venv
source venv/bin/activate

Install the dependencies.

cd locationapp/
pip install -r requirements.txt

Migrate model to postGIS DB.

python manage.py migrate

Test

Start the server

python manage.py createsuperuser
python manage.py runserver

Deactivate Python VEnv Afer test

deactivate

Django Admin page

http://127.0.0.1:8000/admin

Django REST test page

http://127.0.0.1:8000/locations/

Swagger UI

http://127.0.0.1:8000/docs/

Reference

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published