Compare commits

..

No commits in common. "f73e46b5e6dea0cfc9c6cc32335c73d0aab809be" and "fbf2a55cb1b2554879c4767fa3fc8f4520f41d7c" have entirely different histories.

4 changed files with 554 additions and 817 deletions

View file

@ -1,18 +0,0 @@
[Unit]
Description=API Carburants!
After=network-online.target
[Service]
Environment="PORT=3666"
Type=simple
User=dbroqua
Group=dbroqua
UMask=007
WorkingDirectory=/home/dbroqua/carburants/api
ExecStart=yarn start
Restart=on-failure
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target

16
cron.sh
View file

@ -1,16 +0,0 @@
#! /bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
cd ${SCRIPTPATH}
mkdir ./public
cd ./public
wget https://donnees.roulez-eco.fr/opendata/jour
unzip jour
mv PrixCarburants_quotidien*.xml gas-stations.xml
rm jour
cd ../
node importGasStations.js

View file

@ -30,7 +30,6 @@
"ext": "*.js,*.json,*yaml" "ext": "*.js,*.json,*yaml"
}, },
"dependencies": { "dependencies": {
"@babel/compat-data": "^7.13.12",
"cookie-parser": "~1.4.4", "cookie-parser": "~1.4.4",
"cors": "^2.8.5", "cors": "^2.8.5",
"debug": "~2.6.9", "debug": "~2.6.9",
@ -49,11 +48,11 @@
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.8.6", "@babel/core": "^7.8.6",
"@babel/plugin-proposal-class-properties": "^7.13.0", "@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.13.8", "@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.13.10", "@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.13.12", "@babel/preset-env": "^7.8.6",
"@babel/register": "^7.13.8", "@babel/register": "^7.8.6",
"babel-eslint": "^10.1.0", "babel-eslint": "^10.1.0",
"eslint": "^6.8.0", "eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0", "eslint-config-airbnb-base": "^14.0.0",

1326
yarn.lock

File diff suppressed because it is too large Load diff