Closed deontologician closed 8 years ago
I am going to try getting this working as best I can
This is a really good idea, most importantly the marquee tag. I wonder though with the hz
alias if people are going to starting calling us hertz instead of horizon.
hzn
?
I think hz is great.
@deontologician I would suggest using yeoman
for all the generator stuff. If you publish a separate generator-horizon
template to npm horizon init <app>
could just shell out to yo horizon <app>
or use yeoman
programmatically.
This would scale out nicely if/when people (or you guys) write more framework-specific scaffolding templates. As an example horizon init <app> --framework=angular
might (by convention) try to install and use generator-horizon-angular
, which could either be a third-party or official generator.
Also, :+1: to hz
!
Do people still use yeoman?
@deontologician I thought it was still the go-to scaffolding framework. If there's some new hotness out there I haven't heard of it.
@marshall007 https://github.com/slushjs/slush maybe
I haven't heard of anything new, I just haven't heard anything about yeoman recently. I think for now, since we only need to generate a single file, I'm just putting it into a string literal. But later when we need to use adapters etc, it will probably make sense to integrate yeoman
Getting started with Horizon
First, install horizon from npm:
Now you can initialize a new horizon project:
This will create a directory with the following files:
The
dist
directory is where you should output your static files. Horizon doesn't have any opinions about what front-end build system you use, just that the files to serve end up indist
. Your source files would go intosrc
but that's just a convention. Horizon doesn't touch anything insrc
.If you want, you can
npm init
orbower init
in this directory to set up dependencies etc.By default, horizon creates a basic
index.html
to serve so you can verify everything is working:Finally, let's start up a horizon server in dev mode. This will start a RethinkDB instance, connect to it, and serve our static files.
Now you're cooking with
fusionhorizon...