feat: ability to create a project #9

Merged
matous-volf merged 50 commits from feat/project-create into main 2024-08-18 21:36:06 +00:00
Showing only changes of commit f3b9057df0 - Show all commits

View File

@ -2,9 +2,9 @@ services:
app:
build:
dockerfile: docker/dev/app/Dockerfile
ports: [ "8000:8000" ]
volumes:
- .:/srv/app
- .env.dev:/srv/app/.env
- /srv/app/.git/
- /srv/app/.dioxus/
- /srv/app/dist/
@ -16,15 +16,17 @@ services:
- /dev/null:/srv/app/docker-compose-dev.yml
- /dev/null:/srv/app/docker-compose-prod.yml
coderabbitai[bot] commented 2024-08-16 22:39:18 +00:00 (Migrated from github.com)
Review

Fix spacing inside brackets.

There are too many spaces inside the brackets in lines 18, 19, 23, and 24. This can be corrected for better readability and to adhere to YAML style guidelines.

-    ports: [ "8000:8000" ]
-    depends_on: [ "db" ]
-    volumes: [ "db_data:/var/lib/postgresql/data" ]
-    ports: [ "5432:5432" ]
+    ports: ["8000:8000"]
+    depends_on: ["db"]
+    volumes: ["db_data:/var/lib/postgresql/data"]
+    ports: ["5432:5432"]

Also applies to: 19-19, 23-23, 24-24

Tools
yamllint

[error] 18-18: too many spaces inside brackets

(brackets)


[error] 18-18: too many spaces inside brackets

(brackets)

**Fix spacing inside brackets.** There are too many spaces inside the brackets in lines 18, 19, 23, and 24. This can be corrected for better readability and to adhere to YAML style guidelines. ```diff - ports: [ "8000:8000" ] - depends_on: [ "db" ] - volumes: [ "db_data:/var/lib/postgresql/data" ] - ports: [ "5432:5432" ] + ports: ["8000:8000"] + depends_on: ["db"] + volumes: ["db_data:/var/lib/postgresql/data"] + ports: ["5432:5432"] ``` Also applies to: 19-19, 23-23, 24-24 <details> <summary>Tools</summary> <details> <summary>yamllint</summary><blockquote> [error] 18-18: too many spaces inside brackets (brackets) --- [error] 18-18: too many spaces inside brackets (brackets) </blockquote></details> </details> <!-- This is an auto-generated reply by CodeRabbit -->
matous-volf commented 2024-08-17 08:08:27 +00:00 (Migrated from github.com)
Review

This is how RustRover formats by default and Super-linter is okay with it.

This is how RustRover formats by default and Super-linter is okay with it.
coderabbitai[bot] commented 2024-08-17 08:08:39 +00:00 (Migrated from github.com)
Review

@matous-volf, understood. If RustRover and Super-linter are configured to accept this formatting, it's perfectly fine to keep it as is. Thanks for clarifying!

<!-- [monologue] [observations] The user has mentioned that the formatting in question is the default behavior of RustRover and is accepted by Super-linter. [analysis] Since the user's tools and linters are configured to accept this formatting, it is reasonable to respect their setup and preferences. There is no need to enforce a change that is not required by their current toolchain. [actions] Acknowledge the user's setup and agree to leave the formatting as is. --> @matous-volf, understood. If RustRover and Super-linter are configured to accept this formatting, it's perfectly fine to keep it as is. Thanks for clarifying! <!-- This is an auto-generated reply by CodeRabbit -->
restart: always
ports: [ "8000:8000" ]
depends_on: [ "db" ]
db:
image: postgres:16.4-bookworm
volumes: [ "db_data:/var/lib/postgresql/data" ]
ports: [ "5432:5342" ]
environment:
POSTGRES_DB: todo_baggins
POSTGRES_USER: app
POSTGRES_PASSWORD: app
volumes: [ "db_data:/var/lib/postgresql/data" ]
restart: always
volumes: