A simple online notes.
-
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
-
Run Vagrant
$ cd path/to/dev-env $ vagrant up
-
Login to vagrant
$ vagrant ssh
-
Login to docker container(on Vagrant)
$ cd /vagrant/docker/ $ docker-compose restart $ docker exec -it go sh
-
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
-
See the following
- Build the go package (in the go container)
/go # go build -o bin/notes notes /go # ./bin/notes &