https://github.com/oskarrough/rough-ember
Learning ember.js (and gulp)
https://github.com/oskarrough/rough-ember
Last synced: about 1 year ago
JSON representation
Learning ember.js (and gulp)
- Host: GitHub
- URL: https://github.com/oskarrough/rough-ember
- Owner: oskarrough
- Created: 2014-01-19T01:53:10.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-21T12:26:04.000Z (over 12 years ago)
- Last Synced: 2025-02-10T08:31:41.316Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://oskarrough.github.io/rough-ember/
- Size: 2.32 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rough Ember
This is part of my quest to master front-end frameworks like Ember and Angular. Hopefully it can serve as a boilerplate for future projects with similar structure.
The code in this repository will be littered with an excessive amounts of comments. Beware.
See http://oskarrough.github.io/rough-ember/ for a more or less working example.
## To-do
- Add a way to define meta (See https://gist.github.com/machty/8413411)
- Find a proper restful server
- Find a way to render for SEO
## Livereload
Remember to active the Livereload browser plugin.
## Structure
### Root level
- `/app` (our application)
- `/dist` (where our build system generates the working application from /app)
- `bower.json` (packages needed by our application)
- `.Gulpfile.js` (our build system)
- `package.json` (packages needed by our build system)
- `README.md` (this file)
### App level
- `bower_components` (components are installed here because our /.bowerrc says so)
- `images`
- `scripts`
- `styles`
- `templates`
- `index.html`
## Getting started
The app will run if you run it directly from /app/index.html - but it wont compile your templates nor compile your Sass etc. This is where a build system comes into play. Two popular systems are grunt and gulp. Here I went with gulp.
You need to install the gulp cli globally first:
`$ npm install -g gulp`
Then you need to install the dependencies this 'rough ember' has:
`$ npm install && bower install`
Now you can use the build system. Read through Gulpfile.js to see what's possible. If you write `$ gulp` it will start a server while watching and compiling your files as necessary.
If things don't look right, try `$ gulp compile` and refresh.