Web Analytics

turbo-starter

⭐ 52 stars Simplified Chinese by DhivinX

Turborepo 标志

Vue 标志 Nuxt 标志 Nest 标志

入门套件:使用 TurboRepo 的软件开发项目

该仓库作为一个即用型工具包和项目骨架,使构建创新软件应用能够快速启动。它利用了先进的技术和框架,如 TurboRepo、NestJS、基于 Vite 的 Vue 3、TypeScript 以及 Nuxt.js,以促进无缝且高效的软件开发。

目录

功能和内容

先决条件

建议在开发环境中全局安装:

入门指南


1. Clone the repository

git clone https://github.com/DhivinX/turbo-starter.git

2. Enter your newly-cloned folder

cd turbo-starter

3. Install the project and build packages in libs folder

pnpm install

4. Dev: Run web with hot reload

pnpm dev-web # or make dev-web

5. Dev: Run API project with hot reload

Note that you need to create the .env file in the project root directory beforehand

You should copy the .env.example file and rename it to .env

cp .env.example .env

Then you can configure database access and other server settings

pnpm dev-api # or make dev-api

6. Or run API and WEB projects with hot reload parallel

pnpm dev # or make dev

Docker入门


1. Clone the repository

git clone https://github.com/DhivinX/turbo-starter.git

2. Enter your newly-cloned folder

cd turbo-starter

3. Install the project and build packages in libs folder

pnpm install

4. Copy env.example to .env.local and pass wished variables:

Change DATABASE_HOST to "postgres"

cp .env.example .env.local

5. Build image:

make docker-build-local

6. Run API and WEB projects development process with hot reload in docker container

make docker-run-local

环境变量

.env.example

# Frontend: API server connection configuration
VITE_WEB_DEFAULT_LOCALE="en"
VITE_WEB_API_URL="http://localhost"
VITE_WEB_API_PORT=3000

Backend public url

API_PUBLIC_URL=http://localhost:3000

HTTP / HTTPS server config

API_HTTP_PORT=3000

Cross-Origin Resource Sharing domain origins

More info: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

API_HTTP_CORS=["http://localhost", "http://localhost:8080", "http://localhost:8081", "http://localhost:8082", "app://localhost", "capacitor://localhost"]

Keys required for hashing passwords and tokens

They should be filled with random, unique strings

API_SECRETS_PWDSALT="123456" API_SECRETS_JWT="123456"

Database type: postgres, mysql, sqlite etc.

More info: https://typeorm.io

DATABASE_TYPE="postgres"

Database connection config

DATABASE_HOST="localhost" DATABASE_PORT=5432

Database name and user credentials

DATABASE_NAME="turbonv" DATABASE_USER="postgres" DATABASE_PASSWORD="root"

Disable this in the production version of the application

More info: https://typeorm.io/faq#how-do-i-update-a-database-schema

DATABASE_ENABLE_SYNC=true

Volar 与 Visual Studio Code(接管模式)

Volar 现已成为 Vue - Official 扩展,因此在 2.0 版本中不再需要接管模式。 如果之前禁用了内置的 TypeScript and JavaScript Language Features 扩展,请重新启用它。

顶层脚本

#### 开发

#### 构建

#### 运行

#### 移动端

#### 通用

Visual Studio Code 扩展插件


{
  "recommendations": [
    "vue.volar",
    "dbaeumer.vscode-eslint",
    "editorconfig.editorconfig",
    "visualstudioexptteam.vscodeintellicode",
    "mikestead.dotenv",
    "firsttris.vscode-jest-runner"
  ]
}

必需

可选

增强和错误报告

如果您发现错误,或有增强建议,请在 GitHub 上发布问题

贡献

如果您有增强此入门项目的想法或想添加新功能,欢迎提交拉取请求。您的贡献可以帮助其他开发者更快启动他们的项目!

许可

此入门套件在 MIT 许可下提供。

--- Tranlated By Open Ai Tx | Last indexed: 2026-05-04 ---