Skip to content

Sanic web application boilerplate with Jinja2 template rendering

Notifications You must be signed in to change notification settings

Julian-Nash/sanic-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sanic boilerplate

Sanic web application boilerplate with Jinja2 template rendering.

Installation:

pip install -e .

Starting the app:

python run.py

The application will start on http://localhost:8000

Options for starting the app:

$ python run.py --help
usage: Sanic application boilerplate [-h] [--host HOST] [--port PORT] [--debug DEBUG] [--access-log ACCESS_LOG] [--auto-reload AUTO_RELOAD] [--workers WORKERS]
                                     [--config {prod,dev,test}]

optional arguments:
  -h, --help            show this help message and exit
  --host HOST           Application host (default: 0.0.0.0)
  --port PORT           Application port (default: 8000)
  --debug DEBUG         Enable debug mode (default: False)
  --access-log ACCESS_LOG
                        Enable access log (default: False)
  --auto-reload AUTO_RELOAD
                        Enable auto reload (default: False)
  --workers WORKERS     N. workers (default: 12)
  --config {prod,dev,test}
                        Configuration name (default: prod)

Sanic:

Jinja2:

About

Sanic web application boilerplate with Jinja2 template rendering

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published