scollis1968 / GoMediaHandle

GO project to handle real estate listings
0 stars 0 forks source link

Routing and Middleware #2

Open Lidbetter opened 8 years ago

Lidbetter commented 8 years ago

Middleware: https://github.com/urfave/negroni

Routing: https://github.com/gorilla/mux

In other languages/projects I have used middleware, it seems to work well. I am not attached to either of the above implementations, but that might be a good place to start from.

I not all routers are compatible with "generic" middleware so thats something to look out for if we want to use something else.

scollis1968 commented 8 years ago

Ok I will at those.

I have been looking at beego and bee they seem good but I am having a problem with the plugin for webStorm that I would like to use as my IDE a bit frustrating! https://github.com/beego/tutorial

Any experience or comments about beeGo?

On Wed, Jun 15, 2016 at 8:44 PM, Robin Lidbetter notifications@github.com wrote:

Middleware: https://github.com/urfave/negroni

Routing: https://github.com/gorilla/mux

In other languages/projects I have used middleware, it seems to work well. I am not attached to either of the above implementations, but that might be a good place to start from.

I not all routers are compatible with "generic" middleware so thats something to look out for if we want to use something else.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/scollis1968/GoMediaHandle/issues/2, or mute the thread https://github.com/notifications/unsubscribe/AKeAenyqwQJ5tlPtiKueDT11roUwgYhTks5qMFYygaJpZM4I2uN7 .

Lidbetter commented 8 years ago

Looks good, and from my searching, seems to be one of the most popular options.

If you like it, I have no strong objections, a "batteries included" framework seems like a good idea.

scollis1968 commented 8 years ago

What OS are you developing on?

On Thu, Jun 16, 2016 at 3:39 PM, Robin Lidbetter notifications@github.com wrote:

Looks good, and from my searching, seems to be one of the most popular options.

If you like it, I have no strong objections, a "batteries included" framework seems like a good idea.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scollis1968/GoMediaHandle/issues/2#issuecomment-226505395, or mute the thread https://github.com/notifications/unsubscribe/AKeAeolOlZIGyxnTn4RQuTB7599y0ZEQks5qMWApgaJpZM4I2uN7 .

Lidbetter commented 8 years ago

OSX

scollis1968 commented 8 years ago

I'm using windows 10, but I am getting some funny issues with either GO or BEE.

when i run "Bee version" i get

bee :1.4.1 beego :you don't install beego,install first: github.com/astaxie/beego Go :go version go1.6.2 windows/amd64

I have googled "you don't install beego,install first: github.com/astaxie/beego" not a lot of help about!

basically the app starts ok and routes my requests but It only works 1,2 or 3 times then freezes.

I'm sure it is just my setup so I'm going to try on another machine later tonight.

On Thu, Jun 16, 2016 at 5:39 PM, Robin Lidbetter notifications@github.com wrote:

OSX

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scollis1968/GoMediaHandle/issues/2#issuecomment-226542097, or mute the thread https://github.com/notifications/unsubscribe/AKeAeuYSJ-tnLejEx1u7nrS3NqyIoi_Dks5qMXxBgaJpZM4I2uN7 .

Lidbetter commented 8 years ago

Had no problems following the quickstart guide (http://beego.me/quickstart).

Worked both with hot compile and full build and run.

I installed golang with brew and my .bash_profile looks like this (not sure how helpful on windows this will be):

#add installed brews to path
export PATH="/usr/local/sbin:$PATH"

# GOPATH to path
export GOPATH=$HOME/code/gopath

# add the compiled go binaries to path
export PATH=$PATH:$GOPATH/bin

After following quickstart guide:

#cd into hello if following quickstart
$ bee version
bee   :1.4.1
beego :1.6.1
Go    :go version go1.6.2 darwin/amd64
scollis1968 commented 8 years ago

I have installed on another WIndows 10 machine and all works fine, I may have to rebuild my laptop!

On Thu, Jun 16, 2016 at 6:24 PM, Robin Lidbetter notifications@github.com wrote:

Had no problems following the quickstart guide (http://beego.me/quickstart ).

Worked both with hot compile and full build and run.

I installed golang with brew and my .bash_profile looks like this (not sure how helpful on windows this will be):

add installed brews to path

export PATH="/usr/local/sbin:$PATH"

GOPATH to path

export GOPATH=$HOME/code/gopath

add the compiled go binaries to path

export PATH=$PATH:$GOPATH/bin

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/scollis1968/GoMediaHandle/issues/2#issuecomment-226554439, or mute the thread https://github.com/notifications/unsubscribe/AKeAekekVlzvGHuAUHDbvgPZZ0wgiXAAks5qMYbigaJpZM4I2uN7 .