My preferred version of create-t3-app
create-typedef-template is a full-stack web application template inspired by create-t3-app that contains the following technology stack:
- Next.js
- TypeScript
- ChakraUI
- NextAuth.js (Email, Guest, and Web3 Login)
- Prisma
- MongoDB
- Redux
- tRPC / or / Apollo GraphQL (Type-safe)
_tRPC
(default) - branch that utilizes tRPC in place of Apollo GraphQL for the handling of RPC requests.
_ApolloGQL
- branch that uses Apollo GraphQL for the handling of RPC (remote procedure call) requests.
Note: Read CONTRIBUTING.md before submitting a pull request.
Go to create-typedef-app repository, and click Use this template
.
Note: If you want to use one of the branches just clone it and merge it to main locally.
GitHub Actions Secrets
DOCKER_HUB_USERNAME
DOCKER_HUB_REPOSITORY
DOCKER_HUB_ACCESS_TOKEN
Environment Variable Example
To extend any prisma models, run yarn prisma
to generate a new schema.
Note: You may need to reload your IDE for changes to occur.
Ignore this if you are using tRPC
.
To updated grapql types, run yarn graphql:compile
or yarn graphql:watch
. Files will get generated to @/graphql/types
.
Note: Delete the
types
folder inside thesrc/graphql
before generating a new one.