Skip to content
/ web-api-django Public template

a github repo template for creating a web api using django

Notifications You must be signed in to change notification settings

khaister/web-api-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web API Template

A template repository for creating a web API using Django and Django REST framework.

Local development

At project root, perform the following.

  1. Use python 3.12
    $ pyenv install 3.12
    $ pyenv local 3.12
  2. Install poetry
    $ brew install poetry
  3. Set up virtual environment
    $ poetry env use 3.12
    $ poetry install
  4. Apply migrations and create a superuser for testing purposes (use password for password)
    $ make migrate
    $ poetry run python manage.py createsuperuser --username admin --email [email protected]
  5. Create a personal config file (replace <API_KEY> and <URL> with the appropriate values, this is to avoid having sensitive information in the codebase)
    $ touch web_api/config/local.py
        or
    $ make local
  6. Run the server
    $ ENVIRONMENT=local make serve

About

a github repo template for creating a web api using django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published