-
Create and activate a virtual environment:
Macvirtualenv env source env/bin/activateWindowsvirtualenv env ./env/Scripts/activate
-
Install requirements::
pip install -r requirements.txt
-
Run the service:
bin/sync-time
-
If you are contributing to this repo, install dev-requirements::
pip install -r dev-requirements.txtYour own Xero API account is required.
https://sites.google.com/a/chromium.org/chromedriver/home
| Environment Variable | Description |
|---|---|
| API_SECRET | Flask App secret key |
| TIMELY_CLIENT_ID | Timely API client ID |
| TIMELY_SECRET | Timely API secret |
| XERO_CLIENT_ID | Xero API client ID |
| XERO_SECRET | Xero API secret |
We use python-dotenv to manage environment variables. To access the values to the environment variables above, you need to create a symbolic link (symlink) to the .env file.
To create a symlink:
Windows
-
Open a Command Prompt (right click and
Run as Administrator) -
run the following code with the correct paths
mklink "C:\{path_to_project}\\.env" "C:\{path_to_nerevu_dropbox}\Security\{username}\nerevu-api-env"
You can read more about symlinks here.
Linux
-
Open a Terminal
-
run the following code with the correct paths to create a soft link
ln -s /{path_to_nerevu_dropbox}/Security/{username}/nerevu-api-env /{path_to_project}/.env
Macports
sudo port install chromedriver
Homebrew
brew install chromedriver
Download