-
- Downloads
chore: créé un dump public de la base de données (#121)
Showing
- .gitignore 4 additions, 3 deletions.gitignore
- README.md 2 additions, 2 deletionsREADME.md
- knex/copy-clean.js 60 additions, 0 deletionsknex/copy-clean.js
- knex/migrations/20180522000005_titres_etapes_points.js 1 addition, 1 deletionknex/migrations/20180522000005_titres_etapes_points.js
- knex/seeding.js 1 addition, 3 deletionsknex/seeding.js
- manual/database/camino-db.dump 0 additions, 6574 deletionsmanual/database/camino-db.dump
- package.json 5 additions, 4 deletionspackage.json
knex/copy-clean.js
0 → 100644
manual/database/camino-db.dump
deleted
100644 → 0
This diff is collapsed.
... | ... | @@ -15,8 +15,9 @@ |
"homepage": "https://github.com/MTES-MCT/camino-api", | ||
"main": "index.js", | ||
"scripts": { | ||
"lint": "eslint --fix src/", | ||
"build": "rm -rf dist && npx tsc && cp -r ./src/api/schemas ./dist/api", | ||
"start": "npm run build && node ./dist/index.js", | ||
"lint": "eslint --fix src/", | ||
"dev": "nodemon", | ||
"import": "rm -rf sources && mkdir sources && node ./dist/tools/import/index.js", | ||
"dev:import": "ts-node --transpile-only ./src/tools/import/index.js", | ||
... | ... | @@ -34,9 +35,9 @@ |
"dev:daily": "ts-node --transpile-only ./src/business/daily.ts", | ||
"monthly": "node ./dist/business/monthly.js", | ||
"dev:monthly": "ts-node --transpile-only ./src/business/monthly.ts", | ||
"db:export": "pg_dump -c -d camino --username=postgres -h localhost -f ./manual/database/camino-db.dump", | ||
"db:import": "psql -d camino --username=postgres -h localhost < ./manual/database/camino-db.dump", | ||
"start": "npm run build && node ./dist/index.js", | ||
"db:dump": "pg_dump --clean --dbname=camino --username=postgres --host=localhost --file=./database/camino.sql", | ||
"db:dump-public": "node ./knex/copy-clean.js && pg_dump --clean --dbname=camino-public --username=postgres --host=localhost --file=./database/camino-public.sql && dropdb --username=postgres --host=localhost camino-public", | ||
"db:import": "psql --dbname=camino --username=postgres --host=localhost < ./database/camino-public.sql", | ||
"graphql:schema": "ts-node ./src/tools/dev/api/graphql-dsl-to-query-convert.js", | ||
"test": "jest --verbose && codecov", | ||
"jest": "jest --verbose --watch", | ||
... | ... |
Please register or sign in to comment