Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move from MySQL to SQLite3 #46

Merged
merged 1 commit into from
May 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ npm-debug.log
node_modules

config.js
thefederation.db

*.pyc
.idea/
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,35 @@

Statistics hub and node list for The Federation (diaspora*, Friendica, Hubzilla/Redmatrix).

## Database creation
## Requirements

Something like this (MariaDB/MySQL example):

create database diasporahub;
create user diasporahub@localhost identified by 'putnicepasswordhere';
grant all on diasporahub.* to diasporahub@localhost;

Copy src/config.js.example to src/config.js and edit proper values there.
* Node 4.x
* Python 3.x

## Installation

Node stuff;

npm install

Python stuff (2.x required);
No Python dependencies except core Python 3.x standard library.

pip install -r python-requirements.txt
## Configuration

## Running
Copy `src/config.js.example` to `src/config.js` and edit proper values there.

Make sure correct Python virtualenv is active, if any. Then;
## Running

node src/app.js

## We need data

Things wont look nice without any data, so register a node, for example this in a browser:

http://127.0.0.1:4730/register/iliketoast.net

Check the front page and there should be a node listed.

## Author

Jason Robinson / @jaywink / https://jasonrobinson.me / https://iliketoast.net/u/jaywink
Expand Down
21 changes: 0 additions & 21 deletions init/the-federation.info.conf

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion migrations/0001-add_column_failures_to_pods.sql

This file was deleted.

2 changes: 0 additions & 2 deletions migrations/0002-add_columns_ip_country_to_pods.sql

This file was deleted.

10 changes: 0 additions & 10 deletions migrations/0003-create_table_stats_global.sql

This file was deleted.

46 changes: 0 additions & 46 deletions migrations/0004-create_initial_global_stats.py

This file was deleted.

5 changes: 0 additions & 5 deletions migrations/0005-add_more_meta_columns_to_pods_table.sql

This file was deleted.

1 change: 0 additions & 1 deletion migrations/0006-add_pod_count_to_global_stats.sql

This file was deleted.

13 changes: 0 additions & 13 deletions migrations/0007-init_global_stats_pod_count.py

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"repository": {
"url": "https://github.com/jaywink/the-federation.info"
},
"license": "AGPLv3",
"dependencies": {
"mysql": "2.0.0-rc1",
"sqlite3": "3.1.3",
"express": "3.2.4",
"express-validator": "1.0.0",
"orm": "2.1.3",
Expand Down
1 change: 0 additions & 1 deletion python-requirements.txt

This file was deleted.

7 changes: 0 additions & 7 deletions src/config.js.example
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
var config = {};

config.db = {
host: "localhost",
user: "user",
password: "password",
database: "database"
};

config.scheduler = {
hour: 0,
minute: 7
Expand Down
Loading