-
Notifications
You must be signed in to change notification settings - Fork 48
1. Get started
First of all, you need configure environment on your machine:
- Install nginx,
- Install NodeJS and npm, which goes bundled with node (you should consider installing it with nvm).
Then clone or download ngseed repo to your computer:
Run git clone [email protected]:StarterSquad/ngseed.git <PROJECT NAME>
in your terminal or download ZIP
After installation is done prepare application to run.
You need to extend default nginx config with ngseed config to have dev website running locally.
In order to set it up you should:
- open global
nginx.conf
in editor (e.g. mine was installed with homebrew and can be found here/usr/local/etc/nginx/nginx.conf
), - insert content of
nginx.conf.example
intoserver { ... }
block just before closing curly}
- replace
{{ABSOLUTE_PATH_TO_PROJECT_SOURCE}}
placeholder with path to folder where ngseed is.
Don't forget to modify hosts (add 127.0.0.1 ngseed.dev build.ngseed.dev
to /etc/hosts
). Reload nginx, go to http://ngseed.dev
in your browser and enjoy errors in javascript console.
Make sure that you have bower installed, if not run: npm install -g bower
, then from ngseed folder run bower install
. After it is done you can go back to site in browser and verify that there are no errors in the console anymore, but no styles as well.
Almost there. Now from ngseed location run npm install
and npm install -g gulp
. Gulp is a build system. To run whole build flow type gulp
and hit enter. After it's finished, you can see the project served from uncompiled source files at http://ngseed.dev
and compiled + minified version at http://build.ngseed.dev
.
You're all set now!