goboot

command module
v0.0.0-...-bbee1d7 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: GPL-3.0 Imports: 7 Imported by: 0

README

GO BOOT

A Barebone service framework for launching Go apps off the ground.

Development

To install the dependencies and run the the GoBoot Server locally,

Clone the repo:

From your GOPATH

mkdir -p github.com/lkkadiri/goboot
cd github.com/lkkadiri
git clone git@github.com:lkkadiri/goboot.git
go get
goboot

Build:


go build

Install:

go install

Run:

goboot

Seed the Database(Postgres):

postgres=# CREATE DATABASE goboot;
CREATE DATABASE
postgres=# CREATE USER goboot_user WITH ENCRYPTED PASSWORD 'goboot';
CREATE ROLE
postgres=# GRANT ALL PRIVILEGES ON DATABASE goboot to goboot_user;

NOTE: Make sure that you GOPATH and GOROOT are configured correctly. For more info on how to write go correctly. Go Here :D

Heres a sample go config, add it to your ~/.profile or ~/.zshrc or bashrc or whatever makes you happy;

# GO
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
export GOPATH=/Users/FuManchu/GOSPACE
export PATH=$PATH:$GOPATH/bin

So for the above config you structure looks like this;

Users/
    FuManchu/
        GOSPACE/
            src/
                github.com/lkkadiri/goboot/    # This is where you will clone GoBoot
                    .git
                    goboot.go
                    config/
                      db.go
                      db.yml
                      ...
                    GoDeps/
            pkg/                               # Package Object
                darwin_amd64      
                    github.com/
                        jinzhu/
                        lib/
                        lkkadiri
            bin/
                goboot                         # Executable

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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