This is a T3 Stack project bootstrapped with create-t3-app
.
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.
-
Install node modules
npm i
-
Copy .env.example
cp .env.example
-
Since social login is required to use mdbook, at least one or more OAuth clients must be created and environment variables must be set.
- Create a new GitHub OAuth app
- Create GitHub oauth app
- Copy the client id and client secret to GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET in the .env file, respectively.
- Create a new Google OAuth client
- Setting up OAuth 2.0
- Copy the client id and client secret to GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET in the .env file, respectively.
- Create a new GitHub OAuth app
-
Setup local DB
- Install tiup
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh . ~/.profile
- Launch the local db and push the Prisma schema into it.
tiup playground --db 1 --pd 3 --kv 3 --without-monitor # Wait a minute for the cluster to finish starting... npm run db:push
- You can access TiDB database the following URL
- DATABASE_URL="mysql://root@localhost:4000/test"
- This environment variable is set by default in the .env file.
-
Run app
npm run dev
- You can access app via http://localhost:3000