Skip to content

Testing this project locally

Christophe Verclytte edited this page Jul 21, 2020 · 2 revisions

Create a app repo

On your personal GitHub account, create a fake repo representing an app, for example nestor-app-1.

Create a personal token for your account

On your GitHub account, go to "Settings -> Developper Settings -> Personal access tokens" and create a new token. Store the token value that will be used later

Create the nestor configuration repo

Locally, create a repo (or just a folder) that will configure your Nestor deployment Add a project.yaml with appropriate configuration (demo will be provided soon). Create an apps/ folder and add a nestor-app-1.yaml file with the configuration of your app.

Run your app locally

Run the following command:

> pipenv run bash
> NESTOR_CONFIG_PATH='<path_to_your_local_nestor_configuration_repo>' NESTOR_GITHUB_TOKEN="<your_personal_access_token>" FLASK_APP='./nestor_api/api/wsgi.py' pipenv run flask run