-
ngapp
: AngularJS app, the frontend assets.
Usegrunt server
to start the frontend server. Usegrunt clean --force
andgrunt build
to copy the frontend code to the Rails app folder. -
topica
: Rails app, the backend code, most of the meaningful work for iteration2 are in here.
Userails server
to start the api server.
Most of the class method we designed, like CRUDs, are implemented by Rails automagically because of ActiveRecords.
E.g. we defined in the User model that a user should has many feeds by sayinghas_many :feeds
, then we get an instance methodUser#feeds
to get all the feeds that associated with this user instance.
All the APIs are listed here Instructions on unit testing in rails can be found here.
Instruction on how to install npm and nodeJS, plese refer to the following commands.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd /node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://npmjs.org/install.sh | sh