Giter Club home page Giter Club logo

recipe-server's Introduction

Bowl2Recipe

Application server for Bowl2Recipe App.

Project set-up

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.

Install Dependencies

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
Starting Server

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.

recipe-server's People

Contributors

damanpreet avatar sudharkj avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.