World Intermediary Liabilty Map (WILMap) is an online resource informing the public about evolving Internet regulation affecting freedom of expression and user rights worldwide.
This repository contains the new WILMap web app of 2017.
To build the project for production you need to run the following command:
npm run build
The WILMap web app rides on Drupal 8.2.5.
To run the project can use Docker or a local database server.
- Install dependencies:
npm install
- See the instructions bellow on how to import existing data to your database:
npm start
This initializes also Gulp for compile css and js(babel) files.
- Open the browser and access http://localhost:8090
Just need to run
gulp watch
for compile css and js(babel) files
You need configure Drupal database completing the following form, with the necessary data.
- Database name: wilmap_db
- Database username: wilmap
- Database password: wilmap_root
- Host: postgres
And then we choose the option View your existing site.
As Drupal projects realy heavily on the database, you need to make sure to import and export your database at relevant times
This project includes a dump of each table under database/w_backup.sql
.
gunzip < database/w_backup.sql.gz | mysql -u <user> -p <database_name>
mysqldump -u <user> -p <database_name> | gzip > .database/w_backup.sql.gz
docker exec -it mysql-wilmap script /dev/null -c "gunzip < database/w_backup.sql.gz | mysql -u wilmap -pwilmap_root wilmap_db"
Use the following to clear caches:
docker exec -it drupal_wilmap drush cache-rebuild
Then, use this command to export the database:
docker exec -it mysql-wilmap script /dev/null -c "mysqldump -u wilmap -pwilmap_root --default-character-set=utf8 wilmap_db | gzip > database/w_backup.sql.gz"