by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 27 2019 21:33
    Xeoncross commented #99
  • Nov 27 2019 19:12
    talentlessguy commented #99
  • Aug 26 2019 02:23
    olebedev commented #98
  • Aug 22 2019 09:22
    NickMurr commented #98
  • May 11 2019 18:18
    wrannaman opened #100
  • Nov 16 2018 14:04
    olebedev commented #99
  • Nov 16 2018 13:57
    Xeoncross commented #99
  • Nov 16 2018 03:33
    olebedev commented #99
  • Nov 15 2018 19:28
    Xeoncross edited #99
  • Nov 15 2018 19:28
    Xeoncross opened #99
  • Jul 01 2018 14:46
    jakelacey2012 commented #98
  • Jul 01 2018 14:10
    olebedev commented #98
  • Jun 30 2018 15:56
    jakelacey2012 opened #98
  • May 24 2018 12:23
    benwad commented #57
  • May 24 2018 12:20
    benwad commented #57
  • May 24 2018 12:19
    benwad commented #57
  • May 07 2018 23:05
    emwalker commented #95
  • May 07 2018 20:12
    omgnull commented #95
  • Apr 13 2018 20:54
    StefanFransen commented #95
  • Mar 18 2018 05:03
    nebulr commented #57
Neoplatonist
@Neoplatonist
Sorry for my noobness, but how do I use images for individual components in this starter kit? I currently have an images folder per each main parent component (not sure if a single image asset folder would be better). I can get jpg’s to work with css background-image, but I can’t seem to get it to render using <img src=“" />. When looking at the rendered page via Chrome Tools it says that the image type is text/html instead of jpg or png. Any help is appreciated, thanks in advance!
Sumesh Poduval
@Sumeshpoduval_twitter
Anyone tried to debug the server code using intelliJ? Any pointers?
Richard Tuin
@rtuin
Never did such a thing @Sumeshpoduval_twitter. I am using Visual Studio Code w/ vscode-go extension myself, but didn’t try debugging with it. The instructions are straightforward it seems. Maybe it is useful for you: https://github.com/Microsoft/vscode-go#optional-debugging
Sumesh Poduval
@Sumeshpoduval_twitter
Thanks @rtuin . In the past I was able to create a debug configuration with main.go file, but with go-starter-kit, it fails with the following error: # command-line-arguments
server/main.go:34: undefined: NewApp
server/main.go:34: undefined: AppOptions. However it's starts fine using the make file "make serve". And the other option I tried was start the server using "make serve", and then try to attach remote debugger on port 5000, but It ignores my breakpoints.
گفتار کا غازی
@rebel_beliver_twitter
in which file port 5001 is defined?
گفتار کا غازی
@rebel_beliver_twitter
never mind figured it out
گفتار کا غازی
@rebel_beliver_twitter
why it does not work if i change port from 5000 to something else?
Oleg Lebedev
@olebedev
@rebel_beliver_twitter, because the proxy looks at this port.
geir54
@geir54
Hi! I'm having some trouble running this. Is the "go install $(IMPORT_PATH)/vendor/github.com/olebedev/on" correct?
go says it "cannot import absolute path"
geir54
@geir54
looks like the problem was symlinks in my path
now it's complaining that "/olebedev/on" cant find "fsnotify.v1". I went to "vendor/github.com/olebedev/on" and tried srlt restore which caused a panic
geir54
@geir54
any ideas?
geir54
@geir54
upgrading from go1.6 to 1.7 did the trick :)
newasmod
@newasmod
hello !!!
is anybody home?
Konrad Jarosinski
@iKonrad
Hey there
Valerio Santinelli
@tanis2000
hey @iKonrad :)
Jesus Vazquez
@jesusvazquez
is there any related documentation to this project?
Valerio Santinelli
@tanis2000
I don't think so but you can ask if you need help
Jesus Vazquez
@jesusvazquez
I'm new to golang and I wonder what's the best way to add a layer for managing a DB with an ORM lib plus data models and so on
Jesus Vazquez
@jesusvazquez
i would rather follow a good example or some guidelines than build my own way because I wont do it right the first time. I see that the starter kit covers a lot of this stuff and I was wondering if there is anything else aside from the repository
Any other resource is very much appreciated
Also if there is nothing in the repo for that yet I'm open to try to build it with you guys (if that's somehow in the roadmap) and learn in the process
Valerio Santinelli
@tanis2000
I feel the DB layer is pretty personal. AFAIK there is no best way to do that. Many use GORM, but there are many ways of doing that. As an example I usually have completely different models for DB objects and REST API even though one depends on the other.
Jesus Vazquez
@jesusvazquez

Then what would you think about this structure @tanis2000 :

$ tree
.
├── api.go
├── app.go
├── bindata.go
├── conf.go
├── controllers <-- Note this
│   └── articleController.go
├── data
│   ├── static
│   │   ├── build
│   │   │   ├── bundle.css
│   │   │   └── bundle.js
│   │   └── images
│   │       └── favicon.ico
│   └── templates
│       └── react.html
├── main.go
├── models <-- Note this
│   └── article.go
├── react.go
└── utils.go

The idea is to extend the api.go with controllers that can be found inside the controllers folder.

Finally for the DB layer we've got models

Hekar Khani
@hekar
I accidentally ran yarn upgrade and ended up with React Router v4. Which is fine. It works client side, but onEnter was removed.
What direction is server side rendering going to go with React Router v4?
Valerio Santinelli
@tanis2000
@hekar I haven't been toying around with React Router v4 yet. What's the replacement of onEnter?
Hekar Khani
@hekar
There doesn't really seem to be a replacement. You can use the render={() => ...} property and manual do all the checks that onEnter would. There's an issue that was closed, but has a few responses ReactTraining/react-router#3854
Genysys
@Genysys
hey
|Thanks for putting this together
found some minor issues on it that caused it to fail for me
not sure if i should submit a pull or not
Oleg Lebedev
@olebedev

Hi,

Sure, please send a PR, i will review

Genysys
@Genysys
sent the first
minor
the second is make keeps failing
I have to use npm install the dependencies
then make serve works
Genysys
@Genysys
thinking about the make install instructions
install doesnt seem to be a flag in OSX
sage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from commands.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any commands; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no commands; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo commands.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.
  -N OPTION, --NeXT-option=OPTION
make on its own starts to work, but fails on this
go install github.com/Santi/NaidoTest/vendor/github.com/olebedev/on
go install github.com/Santi/NaidoTest/vendor/github.com/jteeuwen/go-bindata/...
Hash: 5711b182b404f5c09cdb
Version: webpack 1.15.0
Time: 4341ms
     Asset     Size  Chunks             Chunk Names
 bundle.js  1.13 MB       0  [emitted]  bundle
bundle.css  9.11 kB       0  [emitted]  bundle
    + 331 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
Child extract-text-webpack-plugin:
        + 2 hidden modules
/go-bindata -pkg=main -prefix=server/data -o=server/bindata.go server/data/...
make: /go-bindata: No such file or directory
make: *** [server/bindata.go] Error 1
Bin-data is failing to install from the Makefile?
Genysys
@Genysys
I understand why I had the issue now

From the make file..for some reason my pc doesnt like it.

` install: @yarn install

Navneet Gupta
@navneet-g
Hi ... is this project still maintained? I am currently looking for options for SSR of React apps with GoLang backend ... by looking at some issues it seems like the go-starter-kit is not in active development, please correct me if I am wrong. Are there any alternative recommedations?
Oleg Lebedev
@olebedev
Hi, not under maintenance now. Feel free to pick some another thing
Navneet Gupta
@navneet-g
Thanks Oleg ... I tried looking for alternatives but could not find one .. I am thinking about trying nextjs ... do you have any recommendations?