-
Notifications
You must be signed in to change notification settings - Fork 25
Setting up Pepyatka
epicmonkey edited this page Apr 15, 2015
·
7 revisions
Requirements:
- Node.js
- Run
npm install
- Run
npm start
- (make sure server is running on http://localhost:3000)
- Open http://localhost:3333/
- (for development, run
jake watch
)
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.