Airway is a full-stack web 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
- AIRWAY_PORT the port to listen on
- AIRWAY_STORAGE_DIR the full path to store the uploaded files
- AIRWAY_ASSET_HOST the CDN url for serving assets
- AIRWAY_PWD the path to current working directory