Skip to content

Commit

Permalink
Update module paths and switched to go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrgrey committed Apr 29, 2020
1 parent 6520ff8 commit 68a35e4
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ui/
bin/
.idea/

.DS_Store
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ This is a demo project which shows one of possible implementations of intergrati
It's supposed here that you have `Golang`, `Node.JS` and `yarn` instllaed on your computer. First of all you need to creare new React application. It's not delivered as part of the source code to be sure that latest version of `create-react-app`. So, clone the project and create test app:

```
$ mkdir -p $GOPATH/src/github.com/kimrgrey/go-create-react-app
$ cd $GOPATH/src/github.com/kimrgrey/go-create-react-app
$ git clone https://github.com/kimrgrey/go-create-react-app.git .
$ mkdir -p $GOPATH/src/github.com/trickstersio/go-create-react-app
$ cd $GOPATH/src/github.com/trickstersio/go-create-react-app
$ git clone https://github.com/trickstersio/go-create-react-app.git .
$ npx create-react-app ui
```

Ok, now we have our test project. Let's install it's dependencies and build it:

```
$ cd $GOPATH/src/github.com/kimrgrey/go-create-react-app/ui
$ cd $GOPATH/src/github.com/trickstersio/go-create-react-app/ui
$ yarn install
$ PUBLIC_URL=http://127.0.0.1:9999/ui/build yarn build
```
Expand All @@ -30,7 +30,7 @@ $ go get gopkg.in/alecthomas/kingpin.v2
Let's build:

```
$ cd $GOPATH/src/github.com/kimrgrey/go-create-react-app
$ cd $GOPATH/src/github.com/trickstersio/go-create-react-app
$ go build -o bin/go-create-react-app cmd/main.go
```

Expand All @@ -39,7 +39,7 @@ $ go build -o bin/go-create-react-app cmd/main.go
Just run server you built:

```
$ cd $GOPATH/src/github.com/kimrgrey/go-create-react-app
$ cd $GOPATH/src/github.com/trickstersio/go-create-react-app
$ bin/go-create-react-app --listen 127.0.0.1:9999 --build ui/build
```

Expand All @@ -51,4 +51,4 @@ $ open http://127.0.0.1:9999

## License

Please, take a look at the [LICENSE](https://github.com/kimrgrey/go-create-react-app/blob/master/LICENSE) file for details about this aspect of the project.
Please, take a look at the [LICENSE](https://github.com/trickstersio/go-create-react-app/blob/master/LICENSE) file for details about this aspect of the project.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"syscall"
"time"

"github.com/kimrgrey/go-create-react-app/api"
"github.com/kimrgrey/go-create-react-app/server"
"github.com/trickstersio/go-create-react-app/api"
"github.com/trickstersio/go-create-react-app/server"
kingpin "gopkg.in/alecthomas/kingpin.v2"
)

Expand Down
10 changes: 10 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module github.com/trickstersio/go-create-react-app

go 1.14

require (
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect
github.com/stretchr/testify v1.5.1 // indirect
gopkg.in/alecthomas/kingpin.v2 v2.2.6
)
18 changes: 18 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM=
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E=
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
2 changes: 1 addition & 1 deletion server/data.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package server

import "github.com/kimrgrey/go-create-react-app/webpack"
import "github.com/trickstersio/go-create-react-app/webpack"

// User represents current user session
type User struct {
Expand Down

0 comments on commit 68a35e4

Please sign in to comment.