This README outlines the details of building, running and collaborating on the frontend side of the Knowledge Exchange Platform (KEP).
For an overview of the application itself, please visit the main README
file, located at the root of the main repository. This is only the frontend
submodule.
You will need the following things properly installed on your computer.
npm install -g bower
npm install -g ember-cli
git clone <repository-url>
this repository- change into the new directory
npm install
bower install
- for development:
npm start
- visit your app at http://localhost:4200.
- your api (the Rails backend) should be located at localhost:3000
- API namespace would be
/api/v1
- API namespace would be
Templates are handled by htmlbars, while styling is done with SASS.
There's a main SCSS file holding all style information in the app, located in
app/styles/app.scss
. Foundation variables are stored under the same directory
in _foundation.scss
.
- Ember Data takes care of data storage and CRUD operations.
- Data exchange is managed by ActiveModelAdapter, which is the JavaScript counterpart of ActiveModel::Serializer Ruby gem.
- There are plans on expanding the storage capabilities from browser's local storage to IndexedDB (see #62)
- For more information on how the data is organized, see the
app/models
directory.
Fork, work on develop
branch, send pull request.
Please try to squash the related commits with git rebase
if possible.
ember test
ember test --server
ember build
(development)ember build -e production
(production)
Deployment is done with Mina.
mina deploy on=staging
# or
mina deploy on=production