Skip to content

Commit

Permalink
Use Docker-managed Compose version (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpota authored Sep 1, 2024
1 parent 117c863 commit 0c04a32
Show file tree
Hide file tree
Showing 16 changed files with 43 additions and 61 deletions.
4 changes: 2 additions & 2 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ go run github.com/shpota/goxygen@latest init --frontend vue --db postgres my-app
The `--frontend` flag accepts `angular`, `react` and `vue`.
The `--db` flag accepts `mongo`, `mysql` and `postgres`.

The generated project is ready to run with `docker-compose`:
The generated project is ready to run with Docker Compose`:

```sh
cd my-app
docker-compose up
docker compose up
```

After the build is completed, the application is accessible
Expand Down
2 changes: 1 addition & 1 deletion .github/README_by.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ go run github.com/shpota/goxygen init --frontend vue --db postgres my-app
Сфарміраваны праект гатовы да запуску з `docker-compose`:
```sh
cd my-app
docker-compose up
docker compose up
```
Пасля завяршэння зборкі, дадатак будзе даступны на
http://localhost:8080.
Expand Down
2 changes: 1 addition & 1 deletion .github/README_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ The `--db` flag accepts `mongo`, `mysql` and `postgres`.
El proyecto generado se puede correr utilizando `docker-compose`:
```sh
cd my-app
docker-compose up
docker compose up
```

Una vez la construccion se haya completado la aplicacion estara accesible
Expand Down
2 changes: 1 addition & 1 deletion .github/README_fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Le projet généré est prêt à l'utilisation avec `docker-compose`:

```sh
cd my-app
docker-compose up
docker compose up
```

Aprés la fin du build, l'application est
Expand Down
2 changes: 1 addition & 1 deletion .github/README_he.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ go run github.com/shpota/goxygen init --frontend vue --db postgres my-app

```sh
cd my-app
docker-compose up
docker compose up
```

<div dir="rtl">
Expand Down
2 changes: 1 addition & 1 deletion .github/README_id.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ The `--db` flag accepts `mongo`, `mysql` and `postgres`.
Proyek yang telah di generate dapat dijalankan dengan perintah `docker-compose`:
```sh
cd my-app
docker-compose up
docker compose up
```
Setelah proses build selesai, aplikasi dapat diakses
pada http://localhost:8080.
Expand Down
2 changes: 1 addition & 1 deletion .github/README_jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ go run github.com/shpota/goxygen init --frontend vue --db postgres my-app
生成されたプロジェクトは、`docker-compse` で実行する準備が整っています:
```sh
cd my-app
docker-compose up
docker compose up
```
ビルドが完了後、アプリケーションは http://localhost:8080 でアクセスできるように
なります。
Expand Down
2 changes: 1 addition & 1 deletion .github/README_ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ The `--db` flag accepts `mongo`, `mysql` and `postgres`.
생성된 프로젝트는 `docker-compose`를 통해 실행 될 수 있습니다.
```sh
cd my-app
docker-compose up
docker compose up
```
빌드가 끝나면, 어플리케이션은 http://localhost:8080에서 연결이
가능합니다.
Expand Down
2 changes: 1 addition & 1 deletion .github/README_pt-br.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ O argumento `--db` aceita as opções `mongo`, `mysql` e `postgres`.
O projeto gerado está pronto para ser executado com `docker-compose`:
```sh
cd my-app
docker-compose up
docker compose up
```

Após o build ser concluído, a aplicação ficará disponível em
Expand Down
2 changes: 1 addition & 1 deletion .github/README_tr.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Oluşturulan proje `docker-compose` komutu ile çalıştırmaya hazır olacaktı

```sh
cd my-app
docker-compose up
docker compose up
```

Build tamamlandıktan sonra, uygulama http://localhost:8080 adresinden erişilebilir olacaktır.
Expand Down
2 changes: 1 addition & 1 deletion .github/README_ua.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ go run github.com/shpota/goxygen init --frontend vue --db postgres my-app
Згенерований проєкт готовий до запуску з `docker-compose`:
```sh
cd my-app
docker-compose up
docker compose up
```
Після завершення збірки, застосунок буде доступний на
http://localhost:8080.
Expand Down
2 changes: 1 addition & 1 deletion .github/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ The `--db` flag accepts `mongo`, `mysql` and `postgres`.
这个项目已经可以用`docker-compose`来运行了:
```sh
cd my-app
docker-compose up
docker compose up
```
build完成之后,就可以在 http://localhost:8080 查看你的Web项目了。

Expand Down
39 changes: 15 additions & 24 deletions static/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions templates/mongo.README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

## Environment setup

You need to have [Go](https://golang.org/),
[Node.js](https://nodejs.org/),
[Docker](https://www.docker.com/), and
[Docker Compose](https://docs.docker.com/compose/)
(comes pre-installed with Docker on Mac and Windows)
You need to have [Go](https://go.dev/),
[Node.js](https://nodejs.org/) and
[Docker](https://www.docker.com/)
installed on your computer.

Verify the tools by running the following commands:
Expand All @@ -15,7 +13,6 @@ Verify the tools by running the following commands:
go version
npm --version
docker --version
docker-compose --version
```

If you are using Windows you will also need
Expand All @@ -27,7 +24,7 @@ on Mac and almost all Linux distributions.
In the project directory run the command (you might
need to prepend it with `sudo` depending on your setup):
```sh
docker-compose -f docker-compose-dev.yml up
docker compose -f docker-compose-dev.yml up
```

This starts a local MongoDB on `localhost:27017`.
Expand Down Expand Up @@ -56,7 +53,7 @@ The application will be available on http://localhost:3000.

Perform:
```sh
docker-compose up
docker compose up
```
This will build the application and start it together with
its database. Access the application on http://localhost:8080.
13 changes: 5 additions & 8 deletions templates/mysql.README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

## Environment setup

You need to have [Go](https://golang.org/),
[Node.js](https://nodejs.org/),
[Docker](https://www.docker.com/), and
[Docker Compose](https://docs.docker.com/compose/)
(comes pre-installed with Docker on Mac and Windows)
You need to have [Go](https://go.dev/),
[Node.js](https://nodejs.org/) and
[Docker](https://www.docker.com/)
installed on your computer.

Verify the tools by running the following commands:
Expand All @@ -15,15 +13,14 @@ Verify the tools by running the following commands:
go version
npm --version
docker --version
docker-compose --version
```

## Start in development mode

In the project directory run the command (you might
need to prepend it with `sudo` depending on your setup):
```sh
docker-compose -f docker-compose-dev.yml up
docker compose -f docker-compose-dev.yml up
```

This starts a local MySQL database on `localhost:3306`.
Expand Down Expand Up @@ -52,7 +49,7 @@ The application will be available on http://localhost:3000.

Perform:
```sh
docker-compose up
docker compose up
```
This will build the application and start it together with
its database. Access the application on http://localhost:8080.
13 changes: 5 additions & 8 deletions templates/postgres.README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

## Environment setup

You need to have [Go](https://golang.org/),
[Node.js](https://nodejs.org/),
[Docker](https://www.docker.com/), and
[Docker Compose](https://docs.docker.com/compose/)
(comes pre-installed with Docker on Mac and Windows)
You need to have [Go](https://go.dev/),
[Node.js](https://nodejs.org/) and
[Docker](https://www.docker.com/)
installed on your computer.

Verify the tools by running the following commands:
Expand All @@ -15,15 +13,14 @@ Verify the tools by running the following commands:
go version
npm --version
docker --version
docker-compose --version
```

## Start in development mode

In the project directory run the command (you might
need to prepend it with `sudo` depending on your setup):
```sh
docker-compose -f docker-compose-dev.yml up
docker compose -f docker-compose-dev.yml up
```

This starts a local PostgreSQL database on `localhost:5432`.
Expand Down Expand Up @@ -52,7 +49,7 @@ The application will be available on http://localhost:3000.

Perform:
```sh
docker-compose up
docker compose up
```
This will build the application and start it together with
its database. Access the application on http://localhost:8080.

0 comments on commit 0c04a32

Please sign in to comment.