gomp

command module
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2016 License: MIT Imports: 17 Imported by: 0

README

GOMP: Go Meal Planner

Web-based recipe book and weekly meal planner.

Building and Running

cd $GOPATH/src
git clone https://github.com/chadweimer/gomp.git
cd gomp
go build
./gomp

Configuration

Certain aspects of the application (e.g., the database url) can be configured either through an JSON application configuration file ( and/or envionment variables. The folliwing table summarizes the available settings. If a setting is present in both the configuration file and OS environment variable, the value in the file is used.

JSON ENV Value (JSON / ENV) Default
root_url_path GOMP_ROOT_URL_PATH string / string <empty>
port PORT uint / unit 4000
upload_driver GOMP_UPLOAD_DRIVER string / string fs
upload_path GOMP_UPLOAD_PATH string / string data
is_development GOMP_IS_DEVELOPMENT bool / '0', '1' false, 0
secret_key GOMP_SECRET_KEY string / string Secret123
application_title GOMP_APPLICATION_TITLE string / string GOMP: Go Meal Planner
database_driver DATABASE_DRIVER string / string sqlite3
database_url DATABASE_URL string / string sqlite3://data/gomp.db
Root URL Path

RootURLPath gets just the path portion of the base application url. E.g., if the app sits at http://www.example.com/path/to/gomp, this setting would be "/path/to/gomp".

Valid Values: Any valid url path, excluding domain.

Port

Port gets the port number under which the site is being hosted.

Valid Values: Any valid port number.

Database Support

Credits

License

The MIT License(MIT)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
modules

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL