This is a T3 Stack project but that incorporates Chakra-UI and user login and password with prisma.
- Run the installation with:
yarn
- Make a copy of
.env.example
to.env
and fill in:NEXTAUTH_SECRET
andNEXTAUTH_URL
- Run the seeding to create users and posts:
yarn migrate/seed
you can find the passwords in:prisma/seed.ts
- If you want to configure Discord Login you can add the API info in:
.env
and uncomment the discord config insrc/server/auth.ts
This boilerplate shares a few different aspects of T3 while making a few changes.
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.
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
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.
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.
To learn more about the T3 Stack, take a look at the following resources:
- Documentation
- Learn the T3 Stack — Check out these awesome tutorials
You can check out the create-t3-app GitHub repository — your feedback and contributions are welcome!
Follow our deployment guides for Vercel, Netlify and Docker for more information.
Template based off: https://create.t3.gg/
Modified by: Burlet Mederic
Github: https://github.com/crimson-med