Skip to main content

Simple local application development server

Project description

railyard

Local application development server

Features

  • Basic compatibility with Google App Engine app.yaml files
  • Basic compatibility with Google App Engine dispatch.yaml files
  • Support for static files

Use

To run an application defined in a app.yaml file:

$ railyard app.yaml

To run an application which uses a dispatch.yaml file:

$ railyard dispatch.yaml

Railyard will first search the folder it is run from for the service definition files, failing that, it will search folders matching the service names. For example, take the following dispatch.yaml:

dispatch:
  - url: "*/app1/*"
    service: app1

  - url: "*/app2/*"
    service: app2

Railyard will use files in the following order:

  • ./app1.yaml
  • ./app1/app1.yaml
  • ./app2.yaml
  • ./app2/app2.yaml

Development

Setup

It is recommended to develop using a pipenv.

A development environment can be set up automatically:

$ pipenv install --dev

You can work directly inside the development environment:

$ pipenv shell

From inside the development environment, you can install the pre-commit hooks using pre-commit:

$ pre-commit install

To run the pre-commit hooks manually:

$ pre-commit run --all-files

Tests

To run the unit tests:

$ python -m unittest

The pre-commit tests are run using coverage. To see where the coverage tests are failing:

$ coverage report -m

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for railyard, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size railyard-0.0.4-py3-none-any.whl (27.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size railyard-0.0.4.tar.gz (23.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page