Giter VIP home page Giter VIP logo

flask-boilerplate's Introduction

flask-boilerplate

Minimal setup for building a Python API running with Flask and MongoDB, inside Docker Containers. Some more info can be found in this medium post.

The Makefile contains all commands required for locally running and testing the system. Run them like, for example, make dev-up.

flask-boilerplate's People

Contributors

adamwlev avatar gabimelo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flask-boilerplate's Issues

can not run due to '/usr/local/bin/uwsgi'

$ docker-compose up
Creating build_docker_api_1 ... done
Attaching to build_docker_api_1
api_1 | /usr/lib/python2.7/site-packages/supervisor/options.py:461: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
api_1 | 'Supervisord is running as root and it is searching '
api_1 | 2019-08-06 17:40:37,201 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
api_1 | 2019-08-06 17:40:37,202 INFO supervisord started with pid 1
api_1 | 2019-08-06 17:40:38,204 INFO spawned: 'nginx' with pid 8
api_1 | 2019-08-06 17:40:38,205 INFO spawnerr: can't find command '/usr/local/bin/uwsgi'
api_1 | nginx: [warn] conflicting server name "" on 0.0.0.0:80, ignored
api_1 | 2019-08-06 17:40:39,214 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
api_1 | 2019-08-06 17:40:39,214 INFO spawnerr: can't find command '/usr/local/bin/uwsgi'
api_1 | 2019-08-06 17:40:41,216 INFO spawnerr: can't find command '/usr/local/bin/uwsgi'

curl localhost:1337
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 162 100 162 0 0 18000 0 --:--:-- --:--:-- --:--:-- 18000

<title>404 Not Found</title>

404 Not Found


nginx

can not run~~~

not working on windows

HI, thanks for the boilerplate. It works perfectly on Ubuntu machine.
There happens to be my team mate using windows machine.
Here is the stack trace.

app_1 | your mercy for graceful operations on workers is 60 seconds app_1 | mapped 218760 bytes (213 KB) for 2 cores app_1 | *** Operational MODE: preforking *** app_1 | ImportError: No module named 'src' app_1 | unable to load app 0 (mountpoint='') (callable not found or import error)

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.