项目作者: mpugach

项目描述 :
An example of Ember SPA with Rails API
高级语言: Ruby
项目地址: git://github.com/mpugach/travel-planner.git
创建时间: 2017-05-30T12:46:05Z
项目社区:https://github.com/mpugach/travel-planner

开源协议:

下载


An example of Ember SPA with Rails API

Setup and start development server

  1. Start PostgreSQL server
  2. cd backend
  3. cp config/database.yml.template config/database.yml # and edit it
  4. bundle install
  5. rake db:setup
  6. rails s
  7. cd frontend
  8. npm install
  9. npm install -g bower
  10. npm install -g phantomjs-prebuilt
  11. bower install
  12. brew install watchman
  13. npm start

open localhost:4200 in browser

Run backend tests and linters

  1. cd backend
  2. rubocop
  3. rspec

Run frontend tests and linters

open localhost:4200/tests in browser

Generate API docs

  1. cd backend
  2. rake docs:generate

open backend/doc/index.html