...
 
Commits (2)
......@@ -34,4 +34,10 @@ If you only want to run migrations, you should run
If you only want to seed the database, you should run
`docker exec forum_forum_1 npm run db:seed` instead.
## Accessing the database control panel
This project uses rethinkdb as a database, which exposes an
admin panel on port 8080. You can open it in a browser by
running `npm run db:admin` which will open `http://localhostt:8080`
[node]: https://nodejs.org/en/
This diff is collapsed.
......@@ -14,6 +14,7 @@
"version": "1.0.0",
"main": "lib/forum",
"scripts": {
"db:admin": "open http://localhost:8080/",
"db:migrate": "npx migrate",
"db:seed": "./bin/seed_database",
"db:setup": "npm run db:migrate && npm run db:seed",
......@@ -23,19 +24,18 @@
"test": "lab -r lab-markdown-reporter -o doc/COVERAGE.md -r console -o stdout -c --coverage-path lib -L -t 100 test"
},
"dependencies": {
"@hapi/joi": "17.1.0",
"@hapi/joi": "17.1.1",
"getenv2": "^2.0.0",
"rethinkdb": "^2.4.2",
"ws": "^7.2.3"
"ws": "^7.3.0"
},
"devDependencies": {
"@hapi/code": "^8.0.1",
"@hapi/eslint-config-hapi": "^13.0.2",
"@hapi/eslint-plugin-hapi": "^4.3.5",
"@hapi/lab": "^22.0.3",
"eslint": "^6.8.0",
"eslint-plugin-svelte3": "^2.7.3",
"jsdoc-to-markdown": "^5.0.3",
"@hapi/lab": "^22.0.4",
"eslint": "^7.3.0",
"jsdoc-to-markdown": "^6.0.1",
"lab-markdown-reporter": "^1.0.2",
"migrate": "^1.6.2"
},
......