Awesome
Rave Starter
Install it
If you don't already have node and bower installed, install them first:
Clone the rave-start-angular repo and install it:
git clone git@github.com:RaveJS/rave-start-angular.git myApp
cd myApp
bower install
Run it
Install, then start the built-in web server.
npm install
npm start
Then point your favorite web browser at http://127.0.0.1:8000/ and open the browser console. See below if port 8000 is unavailable on your machine.
You can, of course, use a different web server. Due to browser security
precautions, however, you cannot load projects directly off the file system.
To uninstall serv, type npm uninstall --save-dev serv
.
Develop it
This Starter prescribes a very minimal application structure
for you. It's almost a clean slate. Start with main.js. This is where
you can initialize your routes, directives, services, etc. If you
prefer to author your application's modules using AMD format, change the
"moduleType" entry in bower.json to [ "amd" ]
, rather than [ "node" ]
.
The app/
directory is where you place your application's modules. They will
be available under the "app" package, so you can import them via
require('app/<module name>');
. If you would like a different name for your
application package, edit the name
property inside the bower.json and
package.json files at the root of the project and rename the app/
directory
to match.
Install your favorite framework or find some useful
Rave Extensions to install.
Don't forget to use --save
when you bower install --save <extension>
!
Learn more
Learn about rave at RaveJS/rave.
Using the built-in server with another port
The included web server, serv is set to port 8000 by default. You can change it to 1337, for instance, with the following steps:
- Open "package.json".
- Find the section "scripts".
- Change the "start" item to use port 1337.
- It should look like this:
"start": "serv --port 1337"
.
- It should look like this:
serv has other options, as well.