This was scaffolded using Create T3 App. Key pieces include:
- NextJS
- TailwindCSS
- Typescript
- tRPC
- Drizzle ORM
Use bun as an alternative to npm, because it installs dependencies much faster.
Create a .env file from the .env.template
cp .env.template .envGet the google client id and secret from Discord and add them to the .env file. You should be able to sign in with your berkeley gmail.
Install docker and make sure you can run docker commands in your terminal.
docker -vInstall the dependencies
bun installRun the database setup script
./start-database.sh
Let me know if you have issues on windows, but is should for sure work on mac. I also give more info about what this script is doing here.
Push the database schema to the database
bun db:push
Run the development server
bun devTry signing in with your berkeley gmail. Then inspect the contents of the database
bun db:studioand make sure a user was created.