Giter VIP home page Giter VIP logo

pyth_api's Introduction

NOTE: the requirement freeze is populated with quite a bit of unneeded dependencies. Will have to clean this up, as it was a snapshot of our dev environment (we have experimented quite a bit with different kind of potential implementations)

This is the API for pyth.app. The pip requirements are in requirements.txt. You will need to pass environment variables in terminal (or command-line, depending on your OS). In Linux this will look like this:

export db_engine='postgresql://login:password@ip:5432/postgres' export FLASK_APP=api.py

If you plan on using Firebase, you may also want to pass the JSON variables as they are listed in settings.py (depending if and on what JSON you use, you may need to change a few Firebase specific things in methods.py). The configuration is currently in DEBUG mode, which can be changed in api.py main. To run, either run api.py with python3 or by running:

flask run --host=0.0.0.0 --cert=/etc/letsencrypt/live/api.pyth.app/fullchain.pem --key=/etc/letsencrypt/live/api.pyth.app/privkey.pem

pyth_api's People

Contributors

dblunk88 avatar agoeden12 avatar

Watchers

James Cloos 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.