Skip to content
/ airway Public

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

Notifications You must be signed in to change notification settings

daqing/airway

Repository files navigation

About

Airway is a full-stack API 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. Configure 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.

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

3. Start local development server

Run just from the project root directory to start the local development server.

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published