Application server for Bowl2Recipe App.
Create an ini file similar to resources/app_config.ini outside the project and add the following content.
[EDAMAM_API]
app-id = 1a1a1a1a
app-key = aaaa1111aaaa1111aaaa1111aaaa1111
Replace the values (i.e., string to the left side of =) with the actual values.
Create sensitive.ini file similar to resources/app_config.ini in resources folder and add the following content.
[SECRET]
keys-file-location = /my_folder_path/bowl-2-recipe.ini
google-keys-file-location = /my_folder_path/google-keys-file-name.json
Replace the value of google-keys-file-location
with the absolute path of the file containing google keys.
Refer to Using a service account
to download the key file.
Also, replace the value of keys-file-location
under [SECRET]
section in
resources/config.ini
with the absolute path of this file.
Make sure that the conda channel is conda-forge.
conda config --add channels conda-forge
Run the following command to install the dependencies.
conda install requirements.txt
Run the following command to start the server in default mode
$ flask run
Application environment and debug mode can be set using FLASK_ENV
and FLASK_DEBUG
variables respectively.
$ FLASK_ENV=development FLASK_DEBUG=1 flask run
The above command start the server in development environment with debug mode on.