Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create t3 app #423

Open
wants to merge 35 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e9872e4
Remove entire lerna monorepo
iquabius Mar 14, 2024
9c8d70e
Generate app skeleton with T3 stack
iquabius Mar 15, 2024
387702f
Add code format commands to package.json
iquabius Mar 23, 2024
5915b22
Keep package.json with tab indent_style in .editorconfig
iquabius Mar 23, 2024
a7af4b2
Format code according to .editorconfig
iquabius Mar 23, 2024
4c51692
Add EditorConfig for VS Code as recommended extension
iquabius Mar 23, 2024
14d9fc8
Add Tailwind CSS IntelliSense as recommended VS Code extension
iquabius Mar 23, 2024
8d3b5f9
Set up shadcn/ui and its dependencies
iquabius Mar 23, 2024
ac3ac29
Add shadcn/ui extension to add components from VS Code
iquabius Mar 23, 2024
5af5821
Add Dashboard building block from shadcn/ui
iquabius Mar 23, 2024
1905e20
Refactor dashboard home according to OliMAT's objectives
iquabius Mar 24, 2024
da98fc2
Extract DesktopNavigation
iquabius Mar 24, 2024
0d5c01a
Extract MobileNavigation component
iquabius Mar 24, 2024
6c1b0e6
Extract SearchInput component
iquabius Mar 24, 2024
adafcc2
Extract UserMenu component
iquabius Mar 24, 2024
45bc530
Extract DashboardLayout into layout.tsx
iquabius Mar 24, 2024
ff09d39
Add VSCode React Refactor as recommended extension
iquabius Mar 24, 2024
9d1e70d
Add vscode-faker as recommended extension
iquabius Mar 24, 2024
49abcdd
Add school listing with basic DataTable using Tanstack's React Table
iquabius Mar 24, 2024
bffcd19
Add sorting to school's name column
iquabius Mar 24, 2024
5192f3e
Add input to filter schools by name
iquabius Mar 24, 2024
ebc69a6
Add SchoolAddDialog to DataTable
iquabius Mar 24, 2024
e999a3f
Rename component files to kebab-case
iquabius Mar 24, 2024
55bfb70
Add studentsQuantity to School in DataTable
iquabius Mar 24, 2024
f3a40e1
Add SchoolAddSchema with react-hook-form and zod
iquabius Mar 25, 2024
ba6aa56
Add school.create mutation route
iquabius Mar 25, 2024
e2859d0
Remove unused `ctx` from School.create route
iquabius Apr 4, 2024
c37e645
Ignore shadcn-ui components when linting
iquabius Apr 4, 2024
ae83dd3
Add Node.js version to .tool-versions with asdf package manager
iquabius Apr 4, 2024
d15128e
Save console.log() to debug later
iquabius Apr 4, 2024
ecc0f26
Update pnpm to v9
iquabius Apr 21, 2024
f1414d0
Add City listing reusing DataTable
iquabius Apr 21, 2024
d317393
Move mock schools to tRPC endpoint
iquabius Apr 21, 2024
6370baf
Replace explicit type with infered one from tRPC
iquabius Apr 21, 2024
af2f089
Update nodejs in .tools-versions
iquabius Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 0 additions & 121 deletions .circleci/config.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@ max_line_length = 80

[*.{yml,yaml}]
indent_style = space

[{package.json}]
indent_style = space
24 changes: 24 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Since the ".env" file is gitignored, you can use the ".env.example" file to
# build a new ".env" file when you clone the repo. Keep this file up-to-date
# when you add new variables to `.env`.

# This file will be committed to version control, so make sure not to have any
# secrets in it. If you are cloning this repo, create a copy of this file named
# ".env" and populate it with your secrets.

# When adding additional environment variables, the schema in "/src/env.js"
# should be updated accordingly.

# Drizzle
DATABASE_URL="postgresql://postgres:password@localhost:5432/."

# Next Auth
# You can generate a new secret on the command line with:
# openssl rand -base64 32
# https://next-auth.js.org/configuration/options#secret
# NEXTAUTH_SECRET=""
NEXTAUTH_URL="http://localhost:3000"

# Next Auth Discord Provider
DISCORD_CLIENT_ID=""
DISCORD_CLIENT_SECRET=""
12 changes: 1 addition & 11 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
# Code generated by Prisma CLI and GraphQL Code Generator
packages/api/src/__generated__

# Test coverage reports generated by Jest
coverage

# Compiled JavaScript by 'tsc' cli command from TypeScript
dist

# NPM installed packages
node_modules
src/components/ui
42 changes: 42 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/** @type {import("eslint").Linter.Config} */
const config = {
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
plugins: ["@typescript-eslint", "drizzle"],
extends: [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
],
rules: {
"@typescript-eslint/array-type": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/consistent-type-imports": [
"warn",
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
},
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-misused-promises": [
"error",
{
checksVoidReturn: {
attributes: false,
},
},
],
"drizzle/enforce-delete-with-where": "error",
"drizzle/enforce-update-with-where": "error",
},
};
module.exports = config;
59 changes: 0 additions & 59 deletions .eslintrc.js

This file was deleted.

46 changes: 42 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,42 @@
node_modules/
coverage
cypress/videos
cypress/screenshots
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# database
/prisma/db.sqlite
/prisma/db.sqlite-journal

# next.js
/.next/
/out/
next-env.d.ts

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables
.env
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package.json
pnpm-lock.yaml
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 10.24.1
nodejs 20.15.1
16 changes: 5 additions & 11 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"dbaeumer.vscode-eslint",
"jvandyke.vscode-circleci"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [
"dbaeumer.jshint",
"hookyqr.beautify",
"editorconfig.editorconfig",
"bradlc.vscode-tailwindcss",
"suhelmakkad.shadcn-ui",
"planbcoding.vscode-react-refactor",
"deerawan.vscode-faker"
]
}
32 changes: 0 additions & 32 deletions .vscode/launch.json

This file was deleted.

Loading