| apps | ||
| deployments/docker-compose | ||
| packages | ||
| scripts | ||
| tooling | ||
| turbo/generators | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| turbo.json | ||
nft-marketplace
About
This project bases on create-t3-turbo template
It uses Turborepo and contains:
.github
└─ workflows
└─ CI with pnpm cache setup
.vscode
└─ Recommended extensions and settings for VSCode users
apps
├─ admin-bot
| ├─ Telegraf
| ├─ Backend calls using @trpc/client
| └─ DI using tsyringe
├─ user-bot
| └─ Also Telegraf
└─ next.js
├─ Next.js 15
├─ React 19
├─ Tailwind CSS
└─ FSD inspired design
packages
├─ api
| ├─ tRPC v11 router definition
| └─ Separated onion architecture backend
├─ auth
| └─ Authentication for server and client side
├─ db
| └─ Typesafe db schema using drizzle
└─ ui
└─ Usiversal components from shadcn & custom
tooling
├─ eslint
| └─ shared, fine-grained, eslint presets
├─ prettier
| └─ shared prettier configuration
├─ tailwind
| └─ shared tailwind configuration
└─ typescript
└─ shared tsconfig you can extend from
In this template, we use
@acmeas a placeholder for package names. As a user, you might want to replace it with your own organization or project name. You can use find-and-replace to change all the instances of@acmeto something like@my-companyor@project-name.
Quick Start
Note
The db package is preconfigured to use Supabase and is edge-bound with the Vercel Postgres driver. If you're using something else, make the necessary modifications to the schema as well as the client and the drizzle config. If you want to switch to non-edge database driver, remove
export const runtime = "edge";from all pages and api routes.
To get it running, follow the steps below:
1. Setup dependencies
# Install dependencies
pnpm i
# Configure environment variables
# There is an `.env.example` in the root directory you can use for reference
cp .env.example .env
# Push the Drizzle schema to the database
pnpm db:push
Deployment
Next.js
Prerequisites
Note
Please note that the Next.js application with tRPC must be deployed in order for the Expo app to communicate with the server in a production environment.
Self-deploy using docker-compose
# this runs docker-compose
pnpm run infra:up