Web Analytics

turbo-starter

⭐ 52 stars English by DhivinX

Turborepo Logo

Vue Logo Nuxt Logo Nest Logo

Starter Kit: Software Development Project with TurboRepo

This repository serves as a ready-to-use toolkit and project skeleton that enables a swift start in building innovative software applications. It leverages advanced technologies and frameworks like TurboRepo, NestJS, Vue 3 with Vite, TypeScript, and Nuxt.js to facilitate seamless and efficient software development.

Table of Contents

Features and Contents

Prerequisites

Suggest to install globally in dev environment:

Getting Started


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

Getting Started with 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

Environment variables

.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 and Visual Studio Code (Takeover Mode)

Volar is now the Vue - Official extension, so takeover mode is no longer needed in version 2.0. Please enable the built-in TypeScript and JavaScript Language Features extension if you had disabled this extension before.

Top-Level Scripts

#### DEVELOPMENT

#### BUILD

#### RUNNING

#### MOBILE

#### COMMON

Visual Studio Code extensions


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

Required

Optional

Enhancements and Bug Reports

If you find a bug, or have an enhancement in mind please post issues on GitHub.

Contribution

If you have ideas for enhancing this starter or want to add new features, feel free to submit pull requests. Your contribution can help other developers kickstart their projects even faster!

License

This starter kit is provided under the MIT license.

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