/vcconnect-flask

Web app that uses VC Connect API to provide a community directory.

Primary LanguageHTMLOtherNOASSERTION

VCConnect-Flask

A simple Flask app that allows VC Connect users such as a volunteer centre to provide a web based community directory.

This was originally developed for Northumberland CVA but with some small modifications to the logo etc. it should be useable for other organisations.

Preview

To get an idea of what a live community directory using this project looks like visit: https://directory.northumberlandcva.org.uk

Configuration

The following environment variables need to be set for the app to work.

  • VCC_API_KEY: VC Connect API key.
  • SECRET_KEY: Random string of bytes needed for CSRF protection.

Generate SECRET_KEY

You can use Python to generate random bytes for use as the SECRET_KEY like so:

$ python

>>> import os
>>> os.urandom(24)
b"\xee\xa8\xed\xc8t\xc1\x07f\x84'\x97-7\x08\xd0rd\x94\x0fz0U\x04\xde"

Take the byte string and set it as an environment variable with:

$ export SECRET_KEY="\xee\xa8\xed\xc8t\xc1\x07f\x84'\x97-7\x08\xd0rd\x94\x0fz0U\x04\xde"

License

VCConnect-Flask is released under the Apache License 2.0.