Waterway is a full-stack web framework written in Go, inspired by Ruby on Rails.
Use gonew
to create a new project based on waterway
:
$ gonew github.com/daqing/waterway 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:
- WATERWAY_PG_URL the URL string for connecting to PostgreSQL
- WATERWAY_PORT the port to listen on
- WATERWAY_STORAGE_DIR the full path to store the uploaded files
- WATERWAY_ASSET_HOST the CDN url for serving assets
- APP_PWD the path to current working directory