Giter VIP home page Giter VIP logo

falcon-boilerplate's Introduction

falcon-boilerplate Build Status codecov

A boilerplate for the Falcon framework.

Requirements

  • Python 3.10+
  • gunicorn as the WSGI HTTP server
  • gevent as the gunicorn worker
  • pydantic for data structures
  • vyper for config management
  • xid for globally unique identifiers

Using

$ git clone https://github.com/alexferl/falcon-boilerplate.git myapp
$ cd myapp
$ make dev
$ source venv/bin/activate
$ make run
# to see all supported arguments:
$ python run.py --help

To run the tests:

$ make test

Optional Dependencies

  • fastjsonschema or jsonschema if you wanna validate the requests/responses with JSON Schema. NOTE: The /users resources will not work if you don't have fastjsonschema or jsonschema installed.
  • falcon-crossorigin if you need CORS headers. Must be enabled by passing --cors-enabled to run.py or any of the other ways supported by Vyper.

falcon-boilerplate's People

Contributors

admiralobvious avatar alexferl avatar dependabot[bot] 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

Watchers

 avatar  avatar

falcon-boilerplate's Issues

--reload

Thank you for the repository to bootstrap a new project. I ran into a problem regarding the --reload parameter I've added it my self but I've noticed that the worker respawn once and after that inherit the cache from the master.

Would you be able to take a look at it?

Docker issue

Hello,

I try to run you project with docker.

I do the following commands :

  • docker build --tag=test .
  • docker run -p 5000:5000 test

But I don't get any response when I try to reach localhost:5000.

The server start on
"Listening at: http://127.0.0.1:5000 (1)"

I tried also to change it to http://0.0.0.0:5000
But I encounter the same issue.

Can you help me please ?

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.