Skip to content

fuwalab/notes

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 &
    

About

A simple online notes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published