Skip to content

Setting up Pepyatka

epicmonkey edited this page Apr 15, 2015 · 7 revisions

Setting up your environment

Requirements:

  • Node.js

Running the application

  1. Run npm install
  2. Run npm start
  3. (make sure server is running on http://localhost:3000)
  4. Open http://localhost:3333/
  5. (for development, run jake watch)

Assets

This application uses AMD/RequireJS to separate files to controllers, routers, models and templates. To bundle all of them to a single bundle you need to install RequireJS in your system and then run: r.js -o build.js. This will build scripts and put them to ./dist folder. After this you need to copy ./dist/config.js and ./dist/main.js to ./public/js folder.

For any additional options feel free to look into build.js file. By default it generates two files: common.js which includes all libraries like emberjs, handlebars, etc and main.js which is custom pepyatka application.

Clone this wiki locally