Portfolio Maker made by #GraphQL #Typescript #TypeORM #Apollo
yarn dev
npm run dev
yarn types
npm run types
yarn build
npm run build
yarn start
npm run start
- Each APIs : src/api/Entitiy_name/API_name
- Each entity's type definition: src/api/Entity_name/shared/Entity_name.graphql
- Schema / Resolvers Merge : Merged in src/schema.ts
// Type Generation based on _.graphql
yarn types
- src/types/graph.d.ts => Used when making resolvers
- src/types/resolvers.d.ts => Basic Resolver type definition
- src/entities/Entity_name => Entity Definitions
- src/cormConfig.ts => TypeORM Configuration File
- src/utils/decodeJWT => return user by decoding JWT
- src/utils/cleanNullArgs => use it when you want to clean Null Arguments inside a object
- src/utils/createJWT => createJWT by using JWT inside .env file and password.
- src/utils/privateResolvers =>
In source directory, do copy .env.example .env
and configure environment variables.
Do copy docker-compose.example.yml docker-compose.yml
to make docker-compose file. Please configure environment variables(password, etc) same with .env file.