First Run:
- Create mysql database
- Set credentials in db.js file (will change it into a json file in the future
- To run locally, run node server.js 3.1) To run on server, run pm2 server.js
You will need to have an IpToAs instance created (since the function will fetch the data from there).
- Clone https://github.com/mannias/IpToAs/tree/master/sources
- Create Database in mysql
- Set credentials in the configuration file
- Download the files: python download_files.py
- Run the aggregator script: python principal.py
If you have some problems downloading files, just download them manually.
When the server is initialized for the first time, it will create an admin user. Set the environment variables TIX_API_USER
and TIX_API_PASSWORD
to define the credentials.
You'll also need to set the Google ReCaptcha secret key with the environment variable RECAPTCHA_SECRET_KEY
. Note that if you change this key you'll also have to update the site-key
in the tix-web.