AidantConnect is an app that allows people who want to assist FranceConnect users to do so with full transparency.
Django
AidantConnect runs on Python 3.7
Use a virtual environment in your working directory
virtualenv venv
source venv/bin/activate
Install the dependencies
pip install -r requirements.txt
Create a .env
file at the root of the project with the following entries:
HOST= <insert_your_data> #e.g. http://localhost:8000
FRANCE_CONNECT_URL=<insert_your_data>
FRANCE_CONNECT_CLIENT_ID=<insert_your_data>
FRANCE_CONNECT_CLIENT_SECRET=<insert_your_data>
TEST="Everything is awesome"
Run the migrations
python manage.py makemigrations
python manage.py migrate
flake8
python manage.py test
To run the app on port 8000
python manage.py runserver 8000
Install Gecko driver
brew install geckodriver
Then launch the tests
python functionnal_tests.py