Airway is a full-stack API framework written in Go, inspired by Ruby on Rails.
Use gonew
to create a new project based on airway
:
$ gonew github.com/daqing/airway example.com/foo/bar
Replace example.com/foo/bar
with your real module name.
$ cp .env.example .env
This file defines a few environment variables:
AIRWAY_PG_URL
The URL string for connecting to PostgreSQL.
Example: postgres://daqing@localhost:5432/airway
AIRWAY_PORT
The port to listen on.
Example: 1900
AIRWAY_ROOT
The full path to current project directory.
Example: /Users/daqing/open-source/airway
TZ
The timezone of the server
Example: Asia/Shanghai
Run just
from the project root directory to start the local
development server.