Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tchx84/analytics-server
https://github.com/tchx84/analytics-server
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tchx84/analytics-server
- Owner: tchx84
- Created: 2014-10-15T00:32:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-21T14:34:13.000Z (almost 10 years ago)
- Last Synced: 2024-10-15T23:35:29.646Z (3 months ago)
- Language: Python
- Size: 169 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
analytics-server
================
This is the server for OLPC-AU analytics suite.Setup
----0. Install server dependencies:
```
$yum install git openssl mysql-server python python-pip MySQL-python tornado
$pip install db-migrate
```1. Create analytics user:
```
$useradd --user-group --shell /sbin/nologin --comment "analytics server" analytics
```2. Get the server bits:
```
$cd /opt/
$git clone https://github.com/tchx84/analytics-server.git analytics
$cd analytics
$chown analytics:analytics server.py
```3. Create the SSL certificates (make sure to assign a Common Name):
```
$openssl req -newkey rsa:2048 -x509 -days 3650 -nodes -out analytics.crt -keyout analytics.key
$mv analytics.key analytics.crt etc/
```4. Create configuration file:
```
$cp etc/analytics.cfg.example etc/analytics.cfg
$vim etc/analytics.cfg
```5. Create the database:
```
$service mysqld start
$mysql -u root -p < misc/init.sql
$cd migrations/
$db-migrate
```6. Enable server service:
```
$cd /opt/analytics/
$cp etc/analytics.service.example /etc/systemd/system/analytics.service
$service analytics start
```