A simple online notes.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
db
models
static
templates
usecase
.gitignore
LICENSE
README.md
glide.lock
glide.yaml
main.go
routes.go
templates.go

README.md

notes

A simple online notes.

Requirements (Local Environment)

  • dev-env
    • Simple developing tool using vagrant
  • docker
    • Docker container, contains Go

Preparation

  1. Clone Repositories / Packages

    $ git clone git@github.com:fuwalab/dev-env.git
    $ cd dev-env
    $ git submodule init
    $ git submodule update
    $ cd docker/data/go
    $ git clone git@github.com:fuwalab/notes.git
    $ cd notes
    $ glide install
  2. Run Vagrant

    $ cd path/to/dev-env
    $ vagrant up
  3. Login to vagrant

    $ vagrant ssh
  4. Login to docker container(on Vagrant)

    $ cd /vagrant/docker/
    $ docker-compose restart
    $ docker exec -it go sh
  5. Run go project

    /go # go run src/notes/*.go
    
       ____    __
      / __/___/ /  ___
     / _// __/ _ \/ _ \
    /___/\__/_//_/\___/ v3.3.5
    High performance, minimalist Go web framework
    https://echo.labstack.com
    ____________________________________O/_______
                                    O\
    ⇨ http server started on [::]:5000
    
  6. See the following

For the production environment

  • Build the go package (in the go container)
    /go # go build -o bin/notes notes
    /go # ./bin/notes &