Skip to content

fabricematrat/rave-start-cujo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published