Commit 18bbd8a4 authored by David Morley's avatar David Morley Committed by GitHub
Browse files

Merge pull request #43 from noplanman/readme_gitignore

Update readme & .gitignore
parents ba6693f3 bf58571d
bower_components
vendor
config.php config.php
Poduptime # Poduptime
Poduptime is software to get live stats and data on listed Diaspora Pods.
Dependencies: Dependencies:
```
php7.0 php7.0-curl php7.0-pgsql php-geoip php7.0-cli php7.0-common php7.0-json php7.0-readline php7.0 php7.0-curl php7.0-pgsql php-geoip php7.0-cli php7.0-common php7.0-json php7.0-readline
git git
curl curl
...@@ -10,31 +12,38 @@ wget ...@@ -10,31 +12,38 @@ wget
dnsutils dnsutils
npm npm
nodejs nodejs-legacy nodejs nodejs-legacy
```
To Install: To Install:
git clone https://github.com/diasporg/Poduptime.git ```
cd Poduptime git clone https://github.com/diasporg/Poduptime.git
sudo npm install -g bower cd Poduptime
bower install sudo npm install -g bower
cp config.php.example config.php bower install
cp config.php.example config.php
If you need to setup your Postgresql/DB: ```
sudo adduser podupuser
sudo -u postgres bash -c "psql -c \"CREATE USER podupuser WITH PASSWORD 'MYpassword';\""
sudo -u postgres bash -c "psql -c \"CREATE DATABASE podupdb;\""
sudo -u postgres bash -c "psql -c \"GRANT ALL PRIVILEGES ON DATABASE podupdb TO podupuser;\""
sudo nano /etc/postgresql/vx.x/main/pg_hba.conf
update your local line to allow md5 METHOD
restart postgresql
psql -u podupuser podupdb < db/tables.sql
edit config.php with your DB and file settings
If you need to setup your Postgresql/DB:
```
sudo adduser podupuser
sudo -u postgres bash -c "psql -c \"CREATE USER podupuser WITH PASSWORD 'MYpassword';\""
sudo -u postgres bash -c "psql -c \"CREATE DATABASE podupdb;\""
sudo -u postgres bash -c "psql -c \"GRANT ALL PRIVILEGES ON DATABASE podupdb TO podupuser;\""
# update your local line to allow md5 METHOD
sudo nano /etc/postgresql/vx.x/main/pg_hba.conf
# restart postgresql
# import database structure
psql -u podupuser podupdb < db/tables.sql
```
Edit `config.php` to add your DB and file settings.
============================ ============================
Source for http://podupti.me Source for https://podupti.me
Poduptime is software to get live stats and data on listed Diaspora Pods. Poduptime is software to get live stats and data on listed Diaspora Pods.
Copyright (C) 2011 David Morley Copyright (C) 2011 David Morley
...@@ -50,4 +59,4 @@ Source for http://podupti.me ...@@ -50,4 +59,4 @@ Source for http://podupti.me
GNU Affero General Public License for more details. GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment