NodeJS is required.
- Clean the
data
directory. - Extract all data files to the
data
directory (gunzip
them if they are .gz files). - Set
random_sample
totrue
at the first line of the fileroutes/index.js
. - Run
DEBUG=mofa:* npm start
to generate the random data set, and exit the program when you see 'Random sampling finished.' - Set
randon_sample
back tofalse
. - Set
update_stats
totrue
at the second line of the fileroutes/index.js
. - Run
DEBUG=mofa:* npm start
to update data stats, and exit the program when you see the Second 'Data set stats updated.' - Set
update_stats
back tofalse
. - Run
DEBUG=mofa:* npm start
. - Visit <IP_ADDRESS/DOMAIN_NAME>:3000 (server) or 127.0.0.1:3000 (local).