Before start building containers you need to set your API keys to environment variables. It is important, without valid API keys the application can not connect with the services.
To do that, you need to update the docker-compose.yml, change the lines that represents this
environment variables:
environment:
- DATABASE_URL=sqlite:///example.sqlite
- GEOCODE_API_KEY=add-your-geo-api-key
- WEATHER_API_KEY=add-your-weather-api-keyWith your environment variables set, run the following command.
docker-compose upWhen the process is finished, and running try to access this URL http://localhost:8080/
Warning: Remember to hydrate the environment variables with your API Keys.
export FLASK_APP=api
export FLASK_ENV=development
export DATABASE_URL=sqlite:///example.sqlite
export GEOCODE_API_KEY=your-google-api-key
export WEATHER_API_KEY=your-weather-api-keyPython 3 version is required.
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txtOpen a new terminal to this server and keep it opened
flask runOpen a new terminal to this server and keep it opened
cd web
npm install
npm run serveopen: http://localhost:8080/