justinscript / airway

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:Go 96.4%Language:CSS 1.1%Language:Just 1.0%Language:JavaScript 1.0%Language:Dockerfile 0.4%Language:Shell 0.2%