HomeLibrary Seed Project
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
client
config
db
lib/tasks
log
spec
tmp
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
public

README.md

HomeLibrary Seed Project

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.

Installation

$ git clone git@github.com:jasonswett/home-library-seed.git
$ bundle install
$ rails db:setup
$ cd client
$ npm install

Running the project

Rails server:

$ rails server

Angular server:

$ cd client
$ npm start

Visit http://localhost:4200/ in the browser.

Running the tests

All tests should be passing.

Rails:

$ rspec

Angular:

$ cd client
$ ng test

Deployment

$ heroku buildpacks:add https://github.com/jasonswett/heroku-buildpack-nodejs
$ heroku buildpacks:add heroku/ruby
$ git push heroku master