Skip to content

crimson-med/t3-chakra-template

Repository files navigation

Create T3 App

This is a T3 Stack project but that incorporates Chakra-UI and user login and password with prisma.

Installation

  1. Run the installation with: yarn
  2. Make a copy of .env.example to .env and fill in: NEXTAUTH_SECRET and NEXTAUTH_URL
  3. Run the seeding to create users and posts: yarn migrate/seed you can find the passwords in: prisma/seed.ts
  4. If you want to configure Discord Login you can add the API info in: .env and uncomment the discord config in src/server/auth.ts

Boilerplate Examples

This boilerplate shares a few different aspects of T3 while making a few changes.

Menu

You can find in src/components/menu.tsx a basic menu with items and sub items as well as Signin and Signup.

You can also specify if items are to be shown when authed.

Signin & Signup

This currently has nextauth which can integrate many login system: NextAuth.js

This template was also configured to allow signin / signup with email and password. You can view the settings in: src/server/auth.ts

Dynamic Routing

There is a good example of dynamic routing with routes such as: /posts/aslkj20jkw0m2 or /posts/[id].

This can be found in: src/pages/posts/[id].tsx

You can see how to handle parameters.

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

We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary.

If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our Discord and ask for help.

Learn More

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

You can check out the create-t3-app GitHub repository — your feedback and contributions are welcome!

How do I deploy this?

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

Author

Template based off: https://create.t3.gg/

Modified by: Burlet Mederic

Github: https://github.com/crimson-med

Screenshot

Home

Pricing

Login

About

T3 template incorporating Chakra UI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published