Closed wildtron closed 9 years ago
question for the frontend guys. will you be using build tools?
if so I think will need another folder for the frontend that will contain the source files and just have the public as dist. of the processed files.
.
+-- cmd // contains build-able main packages
| +-- api // main package for api
| +-- frontend // main package for frontend
| +-- realtime // main package for realtime app (ws?)
+-- frontend // source file for the frontend
+-- core // shared packages that will be use by api and realtime
+-- api // go codes for the web api
+-- realtime // or what ever name
+-- public // destination for the processed frontend codes
suggestion for the folder structure
how about we rename cmd
to src
?
i think better if we use src
:+1:
it's not really the whole source code. it will look like this https://github.com/gorward/todo/tree/master/cmd/webapi. it will only contain the main package that will call the real source codes from /api and /realtime directories. how about bin?
oke, I think if that's the case, we should remove cmd/frontend
.
yes if will use apache or nginx. I put it there because we can also use go to serve those static files by creating a simple http server inside cmd/frontend.
for static file, I guess let's use nginx/apache because they are really good at that plus we can use their caching mechanisms and other advance configurations than creating a simple http server. btw, I prefer nginx over apache.
oke.. what now la? i change readme.
@clevr/prime I've changed README.md
. see if that works.
:+1: