Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/helmturner/t3-mongo-template
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.
https://github.com/helmturner/t3-mongo-template
mongodb nextauth nextjs t3 tailwindcss trpc ts-reset vitest zod
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/helmturner/t3-mongo-template
- Owner: helmturner
- Created: 2023-02-23T04:47:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-11T18:20:15.000Z (11 months ago)
- Last Synced: 2024-09-27T13:01:30.979Z (about 2 months ago)
- Topics: mongodb, nextauth, nextjs, t3, tailwindcss, trpc, ts-reset, vitest, zod
- Language: TypeScript
- Homepage:
- Size: 33.2 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# T3-Mongo-Template
This is a highly opinionated version of a [T3 Stack](https://create.t3.gg/) 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.
- [Next.js](https://nextjs.org)
- [NextAuth.js](https://next-auth.js.org)
- [Tailwind CSS](https://tailwindcss.com)
- [tRPC](https://trpc.io)
- [zod](https://zod.dev/)
- [MongoDB](https://www.mongodb.com/docs/)
- [TS-Reset](https://github.com/total-typescript/ts-reset)## Learn More
To learn more about the [T3 Stack](https://create.t3.gg/), take a look at the following resources:
- [Documentation](https://create.t3.gg/)
- [Learn the T3 Stack](https://create.t3.gg/en/faq#what-learning-resources-are-currently-available)
- [T3 Discord](https://t3.gg/discord)
- [create-t3-app GitHub repository](https://github.com/t3-oss/create-t3-app)## How do I deploy this?
Follow the T3 deployment guides for [Vercel](https://create.t3.gg/en/deployment/vercel), [Netlify](https://create.t3.gg/en/deployment/netlify) and [Docker](https://create.t3.gg/en/deployment/docker) for more information.