Skip to content

The API server for ASWWU Web. This project uses the Tornado web framework to serve and manage data across all ASWWU sites.

Notifications You must be signed in to change notification settings

ASWWU-Web/python_server

Repository files navigation

The ASWWU Server

Python application

Run in Development

  • pipenv install

  • cp test_settings.py settings.py

  • in settings.py

    • set testing['dev'] to True to bypass authentication
    • set testing['developer'] to your WWU ID, to make yourself the current user locally.
    • set environment to local_dev_environment
    • when running pytests
      • set testing['pytest'] to True, and
      • set testing['dev'] to False
  • pipenv run python server.py

  • test your connection with curl -X GET http://localhost:8888/search/all

Note: The live server is available at https://aswwumask.com/server/

Production

  • clone the repository
  • cp test_settings.py settings.py
  • in settings.py
    • set environment = production_environment
    • update any settings needed such as database and secret_key
  • then run docker compose build
  • then run docker compose up

if you need to update settings.py run docker-compose down then docker-compose up --build

Documentation

The raw documentation files can be found in the docs folder. To view the parsed versions, use the following links:

Master Branch

Develop Branch

About

The API server for ASWWU Web. This project uses the Tornado web framework to serve and manage data across all ASWWU sites.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages