-
Run
sudo apt-get install imagemagick
. -
Run
npm install
to install dependencies. -
Run
npm install -g grunt-cli
to install globally grunt's command line interface. -
Add execute permission to scripts/create_databse.sh, run
chmod a+rwx scripts/create_database.sh
. -
Run
grunt run:create_db
to create the database.
-
Add execute permission to scripts/start.sh, run
chmod a+x scripts/start.sh
. -
Run
npm start
to start application. This will also create the database structure for the first time.
- Running
npm test
will run the unit tests and integration tests.
Gruntfile includes a task to populate database tables basing located at /config/seeds/database_seed.json file.
To add new records to the db:
-
Make sure you've run
npm start
at least once to create the database structure. Other way next steps will fail. -
Run
npm install -g grunt-cli
to install grunt's command line interface. (if you didn't do it before). -
Add content to database_seed.json providing a valid json.
-
Truncate db tables if neccessary, as seed does not remove anything. Just adds missing records.
-
Move to Gruntfile directory.
-
Run
grunt fixtures:import_default_data
. -
Add execute permission to scripts/advance_sequences.sh, run
chmod a+x scripts/advance_sequences.sh
-
Run
grunt run:advance_sq
.
-
Make sure you've run
npm start
at least once to create the database structure. Other way next steps will fail. -
Move to Gruntfile directory.
-
Run
grunt fixtures:import_test_data
. -
Add execute permission to scripts/insert_projectintegration_records.sh, run
chmod a+x scripts/insert_projectintegration_records.sh
-
Run
grunt run:insert_project_integration_records
. -
Add execute permission to scripts/create_searcheable_text_for_users.sh, run
chmod a+x scripts/create_searcheable_text_for_users.sh
-
Run
grunt run:create_searcheable_text_for_users
.