Steps to run this repo:
-
Run
yarn install
command -
Setup database settings inside
ormconfig.ts
file -
Setup .env
TYPEORM_HOST= TYPEORM_USERNAME= TYPEORM_PASSWORD= TYPEORM_DATABASE= DEBUG=true ACCESS_TOKEN_SECRET= REFRESH_TOKEN_SECRET= SESSION_SECRET= FRONTEND_URL=http://localhost:3000
-
Run
yarn start
command
- Before using this Boilerplate it is recommended that you know Schema-First GraphQL Development
- Type-GraphQL lies on Code First while Prisma on Schema-First
- You can use a single class for both a db model and graphql model
- Way smoother to code (generating types is clunky)
- The schema + resolver can be together in the same place
-
Windows WSL
createdb -h localhost -p 5432 -U postgres [dbName] or if you got a working postgresql functions just execute: createdb [dbName] then... sudo -u postgres psql, then... \c [dbName] or psql -h localhost -p 5432 -U postgres -d [dbName] or if you want to login to postgres first: psql -U postgres then enter password
-
Ubuntu WSL Setup & PostgreSQL command guides
- Register - Done
- Validation - Done
- Login - Done
- Authorization Roles - Done
- Authorization Middleware - Done
- Confirmation Email - Done
- Forgot/Change Password - Done
- Logout - Done
- Test Environment (ts-jest) - Done
- Pagination - Done
- Rate Limiting - Done
- Higher Order Resolver - 🏃
- File/Image Multi-upload - Done - Minor Issues
- Query Complexity - Done
- Time Performance GraphQL Resolver - 🏃
- Locking Accounts - 🏃
- JWT Authentication (Access/Refresh Tokens, Revoking) - Done
- Will try to migrate to Rust
// add this back if file upload won't work
"resolutions": {
"**/**/fs-capacitor": "^6.2.0",
"**/graphql-upload": "^11.0.0"
}