1
0

Fix license in bower.json. Automate bower install with composer.

Clarify in README.
This commit is contained in:
Markus Birth 2018-04-25 14:08:59 +02:00
parent bf238d6933
commit 95172db3c7
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
3 changed files with 24 additions and 7 deletions

View File

@ -50,11 +50,17 @@ That's it !
$_config['geo_reverse_lookup_url'] // geodecoding api url, will be appended with lat= & lon= attributes
```
3. Create datatable using schema_mysql.sql or schema_sqlite.sql (in the 'sql' directory)
4. Get [bower](https://bower.io/) and install JavaScript dependencies:
4. Make sure you have installed [bower](https://bower.io/) (via [npm](https://nodejs.org/)):
```
bower install
sudo -H npm install -g bower
```
5. Get [Composer](https://getcomposer.org/download/) and install PHP dependencies:
If you don't have access to the root user, you can install it locally:
```
npm install -g --prefix=$HOME bower
export PATH=$HOME/bin:$PATH
```
5. Get [Composer](https://getcomposer.org/download/) and install dependencies (this will call `bower` automatically):
```
./composer.phar install
```

View File

@ -3,13 +3,16 @@
"description": "A simple and responsive self-hosted solution to record and map Owntracks http payloads.",
"main": "index.php",
"authors": [
"tomyvi <tomyvi@protonmail.com>"
"tomyvi <tomyvi@protonmail.com>",
"Markus Birth <markus@birth-online.de>"
],
"license": "MIT",
"license": "GPL-3.0-or-later",
"keywords": [
"owntracks"
"owntracks",
"latitude",
"geolocation"
],
"homepage": "https://github.com/tomyvi/php-owntracks-recorder",
"homepage": "https://github.com/mbirth/php-owntracks-recorder",
"private": true,
"dependencies": {
"jQuery": "^3.1.1",

View File

@ -9,5 +9,13 @@
},
"autoload": {
"classmap": ["lib/"]
},
"scripts": {
"post-install-cmd": [
"bower install"
],
"coffee": [
"bower_components/coffeescript/bin/coffee -c assets/*.coffee"
]
}
}