This is the main repo for the prototype web-based CAT tool developed at CNGL.
#Build Instructions
The frontend is build entirely with javascript, using the Angular framework.
To set up your development environment, it's strongly recommended that you use the development stack consisting of:
- bower - for frontend package management
- grunt - for automating the build and deployment, running tests, and providing the development server (using packages from npm)
- npm - for managing the node js dependencies
- Install node and npm if you don't already have them.
- you shouldn't need to use sudo, the scripts here are good installation options.
- if you already have node and npm, don't try to install again without completely getting rid of your previous installation.
- in order to compile node in a fresh Ubuntu instalation you'll need to install the C/C++ compilation tools first.
sudo apt-get install build-essential
will install them. - the scripts also require curl:
sudo apt-get install curl
- clone the repo
git clone [email protected]:CNGL-repo/editor_components.git
- install grunt
npm install -g grunt
- install grun-cli
npm install -g grunt-cli
- install boew
npm install -g bower
- run
$ npm install
from the top directiory(editor_components/
) - run
$ bower install
from the top directory(editor_components/
) - build bootstrap ui -
$ cd app/bower_components/angular-ui-bootstrap
$ npm install
$ grunt
- to use the autoreload and watch changes functionalities, you'll need ruby and compass.
- install Ruby, then do
gem install compass
- make sure that your ruby installation's bin/ folder is on your
$PATH
Finally, once you've done all that, you should be able to run grunt serve
, and fire up a server which watches all of the files in the repo, and automagically reloads whenever you change something.
- use two spaces to indent javascript
- to start the server to the glossary and concordancer endpoints, do:
cd server/ node web.js
- The command
grunt build
will build the client application into dist/