Skip to content

Commit

Permalink
Pref: improve project initial workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
VoidGun committed Aug 7, 2024
1 parent 30f52cf commit 9a9a1fe
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 36 deletions.
16 changes: 16 additions & 0 deletions content/web-server/initial/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ type: docs
weight: 1
---

With GoFrame CLI tools, we could create a new project quickly and then configure the compose file for docker.

## Create project

Use the following command to create your project:

```bash
gf init bootcamp -u
```

Or change the `bootcamp` to whatever you want for your project name.

{{< callout type="info" >}}
GoFrame project have its own folder structure, we may talk about some methodology later.
{{< /callout >}}

Create a `database` folder in `manifest` folder, you can store you database related code or settings here.

## Setup
Expand Down
16 changes: 16 additions & 0 deletions content/web-server/initial/database.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ type: docs
weight: 1
---

使用 GoFrame 命令行工具,我们可以快速创建一个新项目。然后我们将为 docker 配置 compose 文件。

## 创建项目

使用以下命令创建你的项目:

```bash
gf init bootcamp -u
```

或者将 `bootcamp` 替换为你想创建的项目名称。

{{< callout type="info" >}}
GoFrame 项目拥有自己的工程结构,稍后我们会讨论一些有关的方法论。
{{< /callout >}}

`manifest` 文件夹下创建一个 `database` 文件夹,你可以在这里存储和数据库相关代码或设置。

## 设置
Expand Down
18 changes: 0 additions & 18 deletions content/web-server/initial/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,13 @@ type: docs
weight: 2
---

With GoFrame CLI tools, we could create a new project quickly and then configure the compose file for docker.

## Reminder

{{< callout type="info" >}}
Remember our database info in the previous part? We will use them here.
- **Database**: bootcamp
- **Username**: dbadmin
- **Password**: Password
{{< /callout >}}

## Create project

Use the following command to create your project:

```bash
gf init bootcamp -u
```

Or change the `bootcamp` to whatever you want for your project name.

{{< callout type="info" >}}
GoFrame project have its own folder structure, we may talk about some methodology later.
{{< /callout >}}

## Configurations

### CLI tool
Expand Down
18 changes: 0 additions & 18 deletions content/web-server/initial/project.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,13 @@ type: docs
weight: 2
---

使用 GoFrame 命令行工具,我们可以快速创建一个新项目。然后我们将为 docker 配置 compose 文件。

## 提示

{{< callout type="info" >}}
还记得之前的数据库信息吗?我们将在这里使用它们。
- **数据库**: bootcamp
- **用户名**: dbadmin
- **密码**: Password
{{< /callout >}}

## 创建项目

使用以下命令创建你的项目:

```bash
gf init bootcamp -u
```

或者将 `bootcamp` 替换为你想创建的项目名称。

{{< callout type="info" >}}
GoFrame 项目拥有自己的工程结构,稍后我们会讨论一些有关的方法论。
{{< /callout >}}

## 配置

### 命令行工具
Expand Down

0 comments on commit 9a9a1fe

Please sign in to comment.