In order to use this application you have to setup and run API from part two. Clone this repo in your cloud9 environment: https://github.com/jb223cp/1DV450_jb223cp_API
Follow the steps from README file in that repo.
Run API before You use this application (don't forget cd Registration):
$ rails server -p $PORT -b $IP
angular-express-seed
folder.npm install
to fetch the dependenciesnode app.js
to mount express serverCredentials for sign in:
Even if you have some data available, you can try to POST some extra pubs if you follow the link to POSTMAN file from API repo.
This repo is not a start from scratch. I copied some scripts and files from my application and commit history can be seen here: https://github.com/jb223cp/1dv450_jb223cp_angular
gem 'rack-cors', :require => 'rack/cors'
for two servers on the same machine.'Access-Control-Allow-Origin'
errorprotect_from_forgery with: :null_session, if: Proc.new { |c| c.request.format == 'application/json' }
This line is changed, as continuation after null_session allows PUT request. It is still fishy businesss. Sometimes updates pub, but throws exception (I am working on debugging that).