small refactor
This commit is contained in:
parent
39f6fe49d1
commit
72aeed411a
2 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ laseca is a social bitcoin to cash exchange, implemented as a webapp.
|
||||||
+ `node` and `npm`
|
+ `node` and `npm`
|
||||||
* Installing
|
* Installing
|
||||||
+ Run `npm install`
|
+ Run `npm install`
|
||||||
+ You can now start the app in a container by running `npm run start:containers` (and shut it down with `npm run stop:containers`).
|
+ You can now start the app in a container by running `npm run start:container` (and shut it down with `npm run stop:container`).
|
||||||
* Running
|
* Running
|
||||||
+ The app will run in a single container, with a Postgres database, a caddy webserver and the nodejs app.
|
+ The app will run in a single container, with a Postgres database, a caddy webserver and the nodejs app.
|
||||||
+ Note that the container doesn't come with a volume for Postgres: default behaviour is to start from scratch every time you create the container, delete everything every time you delete the container.
|
+ Note that the container doesn't come with a volume for Postgres: default behaviour is to start from scratch every time you create the container, delete everything every time you delete the container.
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node src/app.js",
|
"start": "node src/app.js",
|
||||||
"start:containers": "docker compose up -d --build",
|
"start:container": "docker compose up -d --build",
|
||||||
"stop:containers": "docker compose down",
|
"stop:container": "docker compose down",
|
||||||
"cli": "node src/cli.js",
|
"cli": "node src/cli.js",
|
||||||
"test": "playwright test",
|
"test": "playwright test",
|
||||||
"lint": "eslint . --fix",
|
"lint": "eslint . --fix",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue