Permalink
Browse files

migrate dependency manager from glide to godep and extract microservi…

…ce-related files/logic
  • Loading branch information...
cmlicata committed Aug 16, 2017
1 parent 9aaf045 commit 5f0aaffaab914878960e987f6b9f1c2266cf137c
Showing with 12,722 additions and 186 deletions.
  1. +0 −8 .dockerignore
  2. +0 −5 .gitignore
  3. +0 −36 Dockerfile
  4. +21 −0 Gopkg.lock
  5. +30 −0 Gopkg.toml
  6. +20 −28 README.md
  7. +0 −27 application.go
  8. BIN {cmd/justgo → }/build/justgo
  9. +0 −21 cmd/justgo/README.md
  10. +0 −6 cmd/justgo/glide.yaml
  11. +0 −18 docker-compose.yml
  12. +0 −9 glide.yaml
  13. 0 {cmd/justgo → }/go-wrapper
  14. +2 −1 {cmd/justgo → }/justgo.go
  15. +0 −27 server/server.go
  16. 0 util/.gitignore
  17. +15 −0 vendor/github.com/satori/go.uuid/.travis.yml
  18. +20 −0 vendor/github.com/satori/go.uuid/LICENSE
  19. +65 −0 vendor/github.com/satori/go.uuid/README.md
  20. +121 −0 vendor/github.com/satori/go.uuid/benchmarks_test.go
  21. +488 −0 vendor/github.com/satori/go.uuid/uuid.go
  22. +633 −0 vendor/github.com/satori/go.uuid/uuid_test.go
  23. +2 −0 vendor/github.com/urfave/cli/.gitignore
  24. +39 −0 vendor/github.com/urfave/cli/.travis.yml
  25. +392 −0 vendor/github.com/urfave/cli/CHANGELOG.md
  26. +21 −0 vendor/github.com/urfave/cli/LICENSE
  27. +1,364 −0 vendor/github.com/urfave/cli/README.md
  28. +3 −0 vendor/github.com/urfave/cli/altsrc/altsrc.go
  29. +261 −0 vendor/github.com/urfave/cli/altsrc/flag.go
  30. +347 −0 vendor/github.com/urfave/cli/altsrc/flag_generated.go
  31. +336 −0 vendor/github.com/urfave/cli/altsrc/flag_test.go
  32. +18 −0 vendor/github.com/urfave/cli/altsrc/helpers_test.go
  33. +21 −0 vendor/github.com/urfave/cli/altsrc/input_source_context.go
  34. +248 −0 vendor/github.com/urfave/cli/altsrc/map_input_source.go
  35. +310 −0 vendor/github.com/urfave/cli/altsrc/toml_command_test.go
  36. +113 −0 vendor/github.com/urfave/cli/altsrc/toml_file_loader.go
  37. +313 −0 vendor/github.com/urfave/cli/altsrc/yaml_command_test.go
  38. +84 −0 vendor/github.com/urfave/cli/altsrc/yaml_file_loader.go
  39. +492 −0 vendor/github.com/urfave/cli/app.go
  40. +1,685 −0 vendor/github.com/urfave/cli/app_test.go
  41. +24 −0 vendor/github.com/urfave/cli/appveyor.yml
  42. +14 −0 vendor/github.com/urfave/cli/autocomplete/bash_autocomplete
  43. +5 −0 vendor/github.com/urfave/cli/autocomplete/zsh_autocomplete
  44. +44 −0 vendor/github.com/urfave/cli/category.go
  45. +21 −0 vendor/github.com/urfave/cli/cli.go
  46. +286 −0 vendor/github.com/urfave/cli/command.go
  47. +155 −0 vendor/github.com/urfave/cli/command_test.go
  48. +276 −0 vendor/github.com/urfave/cli/context.go
  49. +399 −0 vendor/github.com/urfave/cli/context_test.go
  50. +110 −0 vendor/github.com/urfave/cli/errors.go
  51. +157 −0 vendor/github.com/urfave/cli/errors_test.go
  52. +93 −0 vendor/github.com/urfave/cli/flag-types.json
  53. +799 −0 vendor/github.com/urfave/cli/flag.go
  54. +627 −0 vendor/github.com/urfave/cli/flag_generated.go
  55. +1,203 −0 vendor/github.com/urfave/cli/flag_test.go
  56. +28 −0 vendor/github.com/urfave/cli/funcs.go
  57. +255 −0 vendor/github.com/urfave/cli/generate-flag-types
  58. +294 −0 vendor/github.com/urfave/cli/help.go
  59. +289 −0 vendor/github.com/urfave/cli/help_test.go
  60. +28 −0 vendor/github.com/urfave/cli/helpers_test.go
  61. +9 −0 vendor/github.com/urfave/cli/helpers_unix_test.go
  62. +20 −0 vendor/github.com/urfave/cli/helpers_windows_test.go
  63. +122 −0 vendor/github.com/urfave/cli/runtests

This file was deleted.

Oops, something went wrong.
@@ -29,8 +29,3 @@ gin-bin
.godeps
.DS_Store
.idea/


# You can/should uncomment these if you like checking-in dependencies
glide.lock
vendor

This file was deleted.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,30 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
name = "github.com/satori/go.uuid"
version = "1.1.0"

[[constraint]]
name = "github.com/urfave/cli"
version = "1.19.1"
@@ -11,7 +11,7 @@ Easiest way to create a new project skeleton is to install JustGo CLI tool. Ther
If you already have Go on your machine, you can install the CLI tool with:

```
> go get github.com/inadarei/justgo/cmd/justgo
> go get github.com/inadarei/justgo
```

or you can install it using Homebrew, even if you don't have Go:
@@ -29,40 +29,32 @@ After you have installed the CLI tool, to create a skeleton of a new project, ju
> justgo
```

You can see various options by running `justgo -h`
You can see various options by running `justgo -h`. To learn how to run a project, once it is created, see [here](https://github.com/inadarei/justgo-microservice#how-to-run-a-project-once-created)

## How to run a project, once created:
## Contributing to the CLI Interface

### Short version:
If you are interested in contributing to the development of this CLI tool,
following are the instructions for setting up a dev environment:

```
`docker-compose up -d`
```

### Longer explanation:

1. Install a working Docker environment
1. Mac: https://docs.docker.com/docker-for-mac/
2. Windows: https://docs.docker.com/docker-for-windows/
3. Linux: https://docs.docker.com/engine/installation/linux/
2. cd to the project's root folder and run `docker-compose build --no-cache` (optional but good step)
3. In the same folder, run: `docker-compose up -d`
4. If you get a clean output, you can check which port the server
attached to by running: `docker-compose ps`
4. For instance, if the output was: `0.0.0.0:32791` under `ports` section then you
can access your new service at `http://0.0.0.0:32791/`
5. You can edit source files of the application without restarting anything
since JustGo supports hot code reloading.
## Prerequisites
- [dep](https://github.com/golang/dep)

## Stopping and removing a container
## Installation

While in the project folder:

```
> docker-compose stop
> docker-compose rm -f
```BASH
> git clone https://github.com/inadarei/justgo.git
> cd justgo/
> dep ensure
> ./go-wrapper install
> ./go-wrapper run <someFolderToTestInstallTo>
```

## Warning for VS Code Users

If you are using VS Code with Go tooling, you will want to change the default
`"go.formatTool": "goreturns",` formatter to `"go.formatTool": "gofmt",` instead since the former
seems unable to properly detect the usage of uuid in the code and keeps removing the uuid package's
import statement from code, making it error-out during a build. Gofmt has no such issues.
## License

[MIT](LICENSE)

This file was deleted.

Oops, something went wrong.
Binary file not shown.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
File renamed without changes.
@@ -1,4 +1,4 @@
package main // import "github.com/inadarei/justgo/cmd/justgo"
package main

import (
"archive/zip"
@@ -21,6 +21,7 @@ func init() {
nonProblematicFiles = map[string]bool{
".git": false,
".gitignore": false,
"justgo": false,
"README.md": true,
}
}

This file was deleted.

Oops, something went wrong.
No changes.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 5f0aaff

Please sign in to comment.