This repository is the starting point for much of the work in the book Angular for Rails Developers.
The app doesn't do anything but it's a solid starting point. All the test pass and the code is clean.
If you load the app in your browser, you'll simply see "app works!". If you want the Angular app to actually retrieve data from Rails, you can follow something like my Angular 2 HTTP Example post, although of course using this HomeLibrary project instead of AuthorWizard.
$ git clone [email protected]:jasonswett/home-library-seed.git
$ bundle install
$ rails db:setup
$ cd client
$ npm install
Rails server:
$ rails server
Angular server:
$ cd client
$ npm start
Visit http://localhost:4200/
in the browser.
All tests should be passing.
Rails:
$ rspec
Angular:
$ cd client
$ ng test
$ heroku buildpacks:add https://github.com/jasonswett/heroku-buildpack-nodejs
$ heroku buildpacks:add heroku/ruby
$ git push heroku master