User:Jeblad/Wikistats 2.0/Vagrant

Short description of how to set up a Vagrant box for Wikistats2. The primary repo can be found at analytics/wikistats2 and the secondary repo can be found at Github:wikimedia/analytics-wikistats2.

Content of

Install Node with friends. Note the extra, not sure why it is necessary.

Install the review process in the host.

App server
Open a terminal for the repackage process

Open a terminal for the server

The app server can then be found at http://localhost:5001

Testing
Install a headless browser. Also edit the, changing the line   and add headless entries in.

Then add an entry in karma.config.js and two lines in package.json

there are also a third line  from the previous npm install.

The karma server can be found at http://localhost:9877

Linting
It can be wise to install eslint, but as it probably should be available both in the client and host, and those could have different dependencies, it should thus be installed globally. It is not necessary to run eslint in the host unless it is run as part of an editors linting process.

In the host

In the client

Then create a eslintrc file, for example as