joshmiller17 / vennt-server

A headless server for making API calls to the Vennt database.
MIT License
1 stars 2 forks source link

vennt-server

A headless server for making API calls to the Vennt database.

API Documentation

API documentation can be found in API.md.

Server Documentation

Running the server

py -3 venntserver.py vennt.db --nocert Or py -3 venntserver.py --help for more information on running the server securely.

Organization of the database

venntDB.db is organized in this way:

Contributing

Adding a new API call

  1. Add the data handling logic to venntdb.py (see Adding a new method to the DB below)
  2. Add the API call to the relevant api_x.py (even if it's a one-line function); the burden of permission-checking must happen at this step
  3. Add the API call to vennthandler.py
  4. Add the API call to constants.py
  5. Add an example to example.py, test the new function locally
  6. Use python3 venntserver.py --nocert to run the server locally
  7. Use python3 example.py --verify --nocert to run examples locally
  8. Check the state of your test db with python3 dump.py vennt.db
  9. Add the documentation to this README

Adding a new method to the DB

Whenever a new function is added to the DB that is not in venntdb.py, it must also be imported at the top of the class