/airway

Full-stack web framework written in Go, inspired by Ruby on Rails.

Primary LanguageGo

About

Airway is a full-stack web framework written in Go, inspired by Ruby on Rails.

查看中文文档

Get Started

1. Setup project skeleton

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.

2. Setup local development environment

Create .env file

$ 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