Skip to content

Commit 527e731

Browse files
committed
Formatting!
1 parent 8c3a3a9 commit 527e731

File tree

6 files changed

+31
-27
lines changed

6 files changed

+31
-27
lines changed

README.Docker.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ Your application will be available at http://localhost:3000.
77

88
### Deploying your application to the cloud
99

10-
First, build your image, e.g.: `docker build -t myapp .`.
11-
If your cloud uses a different CPU architecture than your development
12-
machine (e.g., you are on a Mac M1 and your cloud provider is amd64),
13-
you'll want to build the image for that platform, e.g.:
14-
`docker build --platform=linux/amd64 -t myapp .`.
10+
First, build your image, e.g.: `docker build -t myapp .`. If your cloud uses a
11+
different CPU architecture than your development machine (e.g., you are on a Mac
12+
M1 and your cloud provider is amd64), you'll want to build the image for that
13+
platform, e.g.: `docker build --platform=linux/amd64 -t myapp .`.
1514

1615
Then, push it to your registry, e.g. `docker push myregistry.com/myapp`.
1716

18-
Consult Docker's [getting started](https://docs.docker.com/go/get-started-sharing/)
19-
docs for more detail on building and pushing.
17+
Consult Docker's
18+
[getting started](https://docs.docker.com/go/get-started-sharing/) docs for more
19+
detail on building and pushing.
2020

2121
### References
22-
* [Docker's Node.js guide](https://docs.docker.com/language/nodejs/)
22+
23+
- [Docker's Node.js guide](https://docs.docker.com/language/nodejs/)

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ In order do as follows
77
### Docker
88

99
1. Copy `dbpass.txt.example` to `dbpass.txt` and set a password
10-
2. Copy `password-file.txt.example` to `password-file.txt` and set the same password
10+
2. Copy `password-file.txt.example` to `password-file.txt` and set the same
11+
password
1112

12-
Alternatively, set `POSTGRES_HOST_AUTH_METHOD=trust` and pass it to docker compose (No authentication, this is done on debug mode)
13+
Alternatively, set `POSTGRES_HOST_AUTH_METHOD=trust` and pass it to docker
14+
compose (No authentication, this is done on debug mode)
1315

1416
### Local
1517

@@ -47,7 +49,8 @@ docker compose -f compose.yaml -f compose.debug.yaml up db
4749

4850
In `vscode` use the task labeled `dev`.
4951

50-
In the terminal you want to open two terminals, opening a database and the development environment
52+
In the terminal you want to open two terminals, opening a database and the
53+
development environment
5154

5255
```bash
5356
# Then keep this process running
@@ -61,9 +64,10 @@ docker compose -f compose.yaml -f compose.debug.yaml down -v db
6164
npm run clean -ws --if-present
6265
```
6366

64-
Access `http://localhost:3000/tasks/debug/populate` to populate a few tasks (or click the populate button)
67+
Access `http://localhost:3000/tasks/debug/populate` to populate a few tasks (or
68+
click the populate button)
6569

66-
## Docker *deployment*
70+
## Docker _deployment_
6771

6872
```bash
6973
docker compose up

compose.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ services:
3939
- db-password
4040
healthcheck:
4141
test:
42-
- CMD
43-
- /usr/bin/wget
44-
- --no-verbose
45-
- --server-response
46-
- --tries=1
47-
- --spider
48-
- http://localhost:3000/health
42+
- CMD
43+
- /usr/bin/wget
44+
- --no-verbose
45+
- --server-response
46+
- --tries=1
47+
- --spider
48+
- http://localhost:3000/health
4949
interval: 5s
5050
start_interval: 1s
5151
start_period: 1s

packages/backend/db/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Initialization scripts
22

3-
If you add more than one *.sql here, remember to name them having in mind that they must be executed alphabetically.
3+
If you add more than one \*.sql here, remember to name them having in mind that
4+
they must be executed alphabetically.

packages/backend/nodemon.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"watch": [
3-
"src",
4-
".env",
5-
"../../interface/src"
6-
],
2+
"watch": ["src", ".env", "../../interface/src"],
73
"env": {
84
"NODE_OPTIONS": "--no-warnings=ExperimentalWarning"
95
},

react-frontend-express-backend.code-workspace

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"source.removeUnused.ts": "never",
4343
"source.removeUnusedImports": "never",
4444
},
45-
"editor.formatOnSaveMode": "modificationsIfAvailable",
45+
"editor.formatOnSaveMode": "file",
4646
"editor.indentSize": "tabSize",
4747
"editor.tabSize": 2,
4848
"[javascript][typescript][typescriptreact][javascriptreact][jsonc][json][css][postcss]": {
@@ -51,6 +51,8 @@
5151
"editor.formatOnSaveMode": "modificationsIfAvailable",
5252
},
5353
"[json]": {
54+
"editor.defaultFormatter": "esbenp.prettier-vscode",
55+
"editor.formatOnSaveMode": "file",
5456
"editor.tabSize": 4,
5557
},
5658
"[css][postcss][scss][dockercompose]": {

0 commit comments

Comments
 (0)