This Turborepo starter is maintained by the Turborepo core team.
Run the following command:
npx create-turbo@latestThis Turborepo includes the following packages/apps:
docs: a Next.js appweb: another Next.js app@repo/ui: a stub React component library shared by bothwebanddocsapplications@repo/eslint-config:eslintconfigurations (includeseslint-config-nextandeslint-config-prettier)@repo/typescript-config:tsconfig.jsons used throughout the monorepo
Each package/app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all apps and packages, run the following command:
cd my-turborepo
pnpm build
To develop all apps and packages, run the following command:
cd my-turborepo
pnpm dev
Tip
Vercel Remote Cache is free for all plans. Get started today at vercel.com.
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd my-turborepo
npx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
npx turbo link
Learn more about the power of Turborepo:
docker compose up --build # Postgres + apps/backend on http://localhost:3001
SEED_ON_START=1 docker compose up # also load slang + demo users (owner@example.com / demo-password-123)
docker compose down -v # wipe the local database- Local runs against its own Postgres container; it refuses to start if
DATABASE_URLisn't that container, so production data is never touched. - Put optional secrets (Cloudinary, Gemini, ...) in
apps/backend/.env.docker(git-ignored). - The committed Prisma migrations don't cover the full schema, so local uses
prisma db push. - After changing dependencies:
docker compose build && docker compose down -v. - Production is unchanged: Vercel with your hosted
DATABASE_URLset in project env vars.
Tools: login, create_blog, update_blog, get_blog, list_blogs, upload_image (URL or base64 → Cloudinary), list_categories, create_category, list_products, create_product, update_product, list_slang, create_slang, moderate_slang.
Auth (any one):
- OAuth 2.1 (claude.ai, ChatGPT): add
https://admin.developer-ayush.com/api/mcpas a custom connector with no manual credentials. The client discovers/.well-known/oauth-protected-resource, registers itself (/api/oauth/register), and sends you to/oauth/authorizeto sign in with your admin email and password and approve. Access tokens last 1 hour and refresh for 30 days; deleting a user or changing their role takes effect on the next call. Stateless: codes, tokens and clients are signed JWTs (secret:MCP_JWT_SECRET, elseAUTH_SECRET; rotating it signs every connector out). Requests with noAuthorizationheader get401+WWW-Authenticate(onlyloginandsession_tokencalls are allowed without one). Authorization: Bearer <MCP_API_KEY>: setMCP_API_KEY(a long random string) and optionallyMCP_API_USER_EMAIL(the account it acts as; default: first SUPER_ADMIN). Use this for ChatGPT and other clients that can't run a login step.logintool → pass the returnedsession_token(or send it as the bearer). Tokens last 4 hours; signed withMCP_JWT_SECRET(falls back toAUTH_SECRET).
Blog content is validated before saving: Editor.js JSON with block types header, paragraph, list, table, image, code, embed, quote, delimiter, or plain text (split on blank lines). Invalid content is rejected with the exact block and reason. Duplicate titles and bad slugs are reported clearly.
GET /api/ai/models lists the Gemini models your GEMINI_API_KEY can use (live from Google, cached 10 min); the AI sheet uses it. Flash is the default (config/ai-config.json).