Bojko Drive - Google Drive clone built with T3 stack - Next.js, TypeScript, TailwindCSS
- Database hosted on SingleStore
- Project hosted on Netlify
- Auth implemented with Clerk
- Analytics implemented with PostHog (only with the visitor's consent)
https://bojko-drive.netlify.app/
- Clone this repo
- Install packages:
pnpm install - Setup
.envfile by copying and filling out the.env.example - Run project by
pnpm devand enjoy on http://localhost:3000 - Eventually you can run
pnpm buildandpnpm startto build and run the production version
Create a Clerk webhook (Dashboard → Webhooks) for the user.deleted event pointing to https://<your-domain>/api/webhooks/clerk and set CLERK_WEBHOOK_SIGNING_SECRET to its signing secret. Then deleting an account also deletes the user's files and folders.
- Visual Studio Code with the following extensions:
- ESLint
- Prettier
- Tailwind CSS IntelliSense
pnpm dev- run the development serverpnpm build- build the project for productionpnpm start- start the production serverpnpm check- run lint with ESLint and type checks with TypeScriptpnpm db:push- push the database schema to SingleStorepnpm db:studio- open the Drizzle Studio to manage the databasepnpm audit- check dependencies for known vulnerabilities
- Next.js 16
- TypeScript
- TailwindCSS
- ShadCN/UI
- Drizzle ORM
- Zod
- Uploadthing
- MySQL (SingleStore)
- CI pipeline (GitHub Actions)
The CI/CD pipeline uses GitHub Actions and Netlify CD, ensuring that code is automatically checked, linted, correctly built and deployed. The pipeline includes the following steps:
- Checkout of the code – Loads the repository code into the GitHub Actions runner.
- Dependencies Install – We use
pnpmto install all necessary dependencies for the project. - Copy
.envfile – Copies the.env.exampleto.envfor the CI environment. - Typecheck – Checks TypeScript types to ensure type safety across the codebase.
- Lint – Runs ESLint to check for code quality and style issues.
- Dependency audit –
pnpm auditfails the build on high or critical vulnerabilities. - SBOM – Generates a CycloneDX software bill of materials as a build artifact.
Deployment is triggered automatically by Netlify when changes are pushed. Netlify builds the project and deploys it to the live environment.
Please report vulnerabilities privately, see SECURITY.md. CI runs pnpm audit and CodeQL and generates an SBOM; Dependabot keeps dependencies and GitHub Actions up to date.
- Licence: MIT
- Privacy Policy, Terms of Service and Accessibility Statement are served by the app at
/privacy,/termsand/accessibility. - Compliance notes for the operator (GDPR, cookies, DSA, accessibility, CRA, licences): docs/COMPLIANCE.md