Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.