Giter Club home page Giter Club logo

flask-server's Introduction

flask-server

Here's a Flask web server written in Python with these additional libraries: SQLAlchemy (db backend orm) Flask-SQLAlchemy (add'l support for flask) flask-marshmallow (layer for flask and object (de-)serialization)

setup

get a python (I'm on 3.7.4) and get pip3 - with homebrew this appears to be trivial (use the brew install python3 command).

environments

I have set up a DevelopmentConfig, StagingConfig and ProductionConfig that we can switch between. We can eventually push things out to Heroku which will be where the Prod environment will be hosted, and use its Postgres credentials, etc.

models

There is a user model, now - but we will need to build out game settings models that will fill JSON objects (or just one?) and then be configurable. I imagine the "game" model and "state" model could be two JSONB columns in the Postgres DB.

A quick first pass for models: Users, Locations, Devices, GameObjects, Admin. All may also have their own [TableName]_Flags tables for more admin and setting stuff like "IsActive" or "IsAppleDevice" etc.

todo

I'd like to get facility with multiple projects on the same Heroku dyno, so small machine-learning and data crunching tasks can spin while the Flask server is serving requests.

flask-server's People

Contributors

davidps avatar

Watchers

James Cloos avatar Kevin Hinds avatar  avatar  avatar Audry Wolters 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.