Skip to content

A template for NextJS apps featuring e2e type-safety with tRPC+zod, improved typings via ts-reset, tailwindCSS, and vitest - preconfigured with MongoDB and NextAuth using a custom adapter.

Notifications You must be signed in to change notification settings

helmturner/t3-mongo-template

Repository files navigation

T3-Mongo-Template

This is a highly opinionated version of a T3 Stack project bootstrapped with create-t3-app.

It is configured to use MongoDB, JWTs for auth, and vitest + supertest for testing. It also includes extra TS goodies such as @total-typescript/ts-reset and other overrides.

IMPORTANT NOTES

  • This template includes an opinionated prettier.config.cjs which inserts semi-colons, avoids arrow parenthesis, and adds trailing commas.
  • If you are familiar with the usual T3 setup, note that the tRPC client exported as api from src/utils/api.ts is now exported from src/client/sdk.ts as sdk.

What's next? How do I make an app with this?

If you are not familiar with the different technologies used in this project, please refer to the respective docs.

Learn More

To learn more about the T3 Stack, take a look at the following resources:

How do I deploy this?

Follow the T3 deployment guides for Vercel, Netlify and Docker for more information.

About

A template for NextJS apps featuring e2e type-safety with tRPC+zod, improved typings via ts-reset, tailwindCSS, and vitest - preconfigured with MongoDB and NextAuth using a custom adapter.

Topics

Resources

Stars

Watchers

Forks