Commit Graph

686 Commits

Author SHA1 Message Date
Danny van Kooten fbaa8d6932 ignore vendor 2017-01-09 20:13:45 +01:00
Danny van Kooten fdf576d1bb re-add portArg var declaration 2017-01-09 19:53:17 +01:00
Danny van Kooten 5173f3c863 Remove starting msg, start .env notice with uppercase 2017-01-09 19:52:41 +01:00
Danny van Kooten 4cd4bf3c19 don't source vendor dir 2017-01-09 19:48:10 +01:00
Danny van Kooten ec64757966 solve merge conflicts 2017-01-09 19:47:50 +01:00
Danny van Kooten 43f28c3f9a update yarn deps 2017-01-06 15:59:02 +01:00
Danny van Kooten d6a7cb0365 misc CS fixes 2017-01-06 15:58:50 +01:00
Danny van Kooten 440a0e5bfa fix resource URL 2017-01-06 15:58:29 +01:00
Danny van Kooten df4843e4cc return 0 when archive tables have no rows for given timestamps 2017-01-06 15:58:16 +01:00
Danny van Kooten c9c30557db add cron dependency 2017-01-06 15:58:00 +01:00
Danny van Kooten 4170e30274 Add test for calculatePointPercentages. 2016-12-26 11:43:50 +02:00
Danny van Kooten 57c2905efe Fix date format in tests for `fill` func. 2016-12-26 11:43:37 +02:00
Danny van Kooten 7be11887ad Calculate point percentages separately & query total of metric. 2016-12-25 18:47:11 +02:00
Danny van Kooten e5391e46b4 Run `count.Archive` command hourly so an external cronjob task is no necessity. 2016-12-25 18:27:39 +02:00
Danny van Kooten 3d93e03e13 When running `-archive_data` multiple times a day, recount current day & update previous archived values. 2016-12-25 18:24:53 +02:00
Matthias Loibl bf0252cabb
Fix missing import for randomdata deleted by goimports 2016-12-25 17:11:37 +01:00
Matthias Loibl 7c0cfd83a0
Run goimports on all files in the project to format imports 2016-12-25 16:37:45 +01:00
Matthias Loibl ec6d3e004b
Vendor all dependencies with govendor 2016-12-25 16:34:47 +01:00
Matthias Loibl c6f9516ca6
Create Dockerfile and add example docker-compose.yml 2016-12-25 16:33:57 +01:00
Matthias Loibl c7c30e25f2
Create a Makefile, delete do script 2016-12-25 16:33:23 +01:00
Matthias Loibl 5824435243
Minor improvements to the Go code
* Don't log.Fatal if there's no .env, there won't be a .env if you run
with ENV variables
* Make the DSN multiline so it's easier to read
2016-12-25 16:24:40 +01:00
Danny van Kooten 4a7dcf9439 Instead of querying total, calculate it from row values instead. 2016-12-24 15:57:37 +02:00
Danny van Kooten fd598da502 Add timestamp to Pageview model in collect method. 2016-12-24 15:57:04 +02:00
Danny van Kooten 3a99939800 Store `last_archived` option after storing aggregated daily totals & use that when re-running `-archive_data` command. This speeds up the archive command considerably & allows for multiple runs a day. 2016-12-24 15:14:25 +02:00
Danny van Kooten 4454b044d4 Add DROP TABLE statements for new total tables. 2016-12-24 15:12:55 +02:00
Danny van Kooten 68ab7985c8 Add options table. 2016-12-24 15:12:17 +02:00
Danny van Kooten 68a7a0caa9 Add `count.RealtimeVisitors` func. 2016-12-24 15:12:01 +02:00
Danny van Kooten 7dc7dee2f4 Get rid of /api/countries endpoint for now. 2016-12-24 15:11:36 +02:00
Danny van Kooten cd8e3c3d9a Get total # of visitors in each individual metric count func. 2016-12-24 15:11:15 +02:00
Danny van Kooten 86efee462a Don't export login struct. 2016-12-24 15:09:24 +02:00
Danny van Kooten 1b107a55d5 Get rid of `archive` table & introduce `total_*` tables for each metric. 2016-12-24 13:07:33 +02:00
Danny van Kooten c07b220c2d Allow for `-port` CLI argument. 2016-12-24 11:00:29 +02:00
Danny van Kooten d8e074191f Update location hash when choosing time period & parse on component init. 2016-12-24 10:42:05 +02:00
Danny van Kooten ccc93b12e0 Decrease global font-size to 14px. 2016-12-24 10:27:43 +02:00
Danny van Kooten 524bc4f6bd Repeat date in Graph tooltip. 2016-12-24 10:27:29 +02:00
Danny van Kooten 42e3f2134b Account for empty dataset in Table component. 2016-12-24 10:12:20 +02:00
Danny van Kooten 9bd461f8d5 Add `.italic` util class. 2016-12-24 10:11:25 +02:00
Danny van Kooten 7be07970e7 Update roadmap file. 2016-12-24 10:11:11 +02:00
Danny van Kooten d2ff7ede53 Add archive logic for referrers. 2016-12-24 10:00:45 +02:00
Danny van Kooten 84bc9e6e99 Remove `count.CreateArchives` func since we never want to call that from anything other than CLI anyway. 2016-12-24 10:00:16 +02:00
Danny van Kooten f436d87d95 Add heads up about cronjob'ing `-archive_data` command. 2016-12-23 17:59:38 +02:00
Danny van Kooten 04521dfc60 Merge branch 'master' of https://github.com/dannyvankooten/ana
* 'master' of https://github.com/dannyvankooten/ana:
  Update README.md
2016-12-23 17:57:26 +02:00
Danny van Kooten 0156385be1 Add archive logic for browser names 2016-12-23 17:52:08 +02:00
Danny van Kooten 4dd16daa98 Add archive logic for browser languages 2016-12-23 17:39:55 +02:00
Danny van Kooten 04a8f09e5e Remove stray fmt.Print call from screens API endpoint 2016-12-23 17:38:57 +02:00
Danny van Kooten e7cca8ee72 Add archive logic for screen sizes 2016-12-23 16:49:23 +02:00
Danny van Kooten 7ac4569b7a Update Yarn lockfile. 2016-12-23 16:03:20 +02:00
Danny van Kooten 1d75102d5f Fix gometalinter issues throughout count package. 2016-12-23 16:03:11 +02:00
Danny van Kooten 0289ba8cfe Create `pages` table before adding foreign key restraint on `pageviews`. 2016-12-23 16:02:49 +02:00
Danny van Kooten a5dc049fb5 Merge pull request #5 from DennyLoko/patch-1
Update README.md, thanks @DennyLoko
2016-12-19 17:13:18 +02:00