fabricematrat / rave-start-cujo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rave Starter for CujoJS

Install it

If you don't already have node and bower installed, install them first:

Clone the rave-start-cujo repo and install it:

git clone git@github.com:fabricematrat/rave-start-cujo.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 inject views, model and plugins, etc.

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:

  1. Open "package.json".
  2. Find the section "scripts".
  3. Change the "start" item to use port 1337.
    1. It should look like this: "start": "serv --port 1337".

serv has other options, as well.

About

License:Other


Languages

Language:JavaScript 60.1%Language:CSS 39.9%