├── .gitignore ├── .npm-scripts ├── prod.sh ├── seed.sh └── watch.sh ├── Dockerfile ├── README.md ├── database └── sql │ └── database.sql ├── docker-compose.yml ├── nodemon.json ├── package.json ├── scripts └── seed │ ├── db │ ├── connect.ts │ └── index.ts │ └── todo-list │ ├── data.json │ └── index.ts ├── src ├── app.ts ├── db │ ├── connect.ts │ └── index.ts ├── graphql │ ├── resolvers │ │ ├── index.ts │ │ ├── mutations │ │ │ ├── createTodoItem.ts │ │ │ ├── deleteTodoItem.ts │ │ │ └── updateTodoItem.ts │ │ ├── queries │ │ │ └── todoListItems.ts │ │ └── types │ │ │ └── date.ts │ └── types │ │ ├── scalar-type.graphql │ │ ├── schema.graphql │ │ └── todo-list.graphql ├── models │ ├── index.ts │ └── todo-list.ts ├── server.ts └── types │ ├── db.ts │ ├── index.ts │ ├── query-config.ts │ ├── response.ts │ └── status.ts ├── test └── README.md ├── tsconfig.json └── tslint.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/.gitignore -------------------------------------------------------------------------------- /.npm-scripts/prod.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/.npm-scripts/prod.sh -------------------------------------------------------------------------------- /.npm-scripts/seed.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/.npm-scripts/seed.sh -------------------------------------------------------------------------------- /.npm-scripts/watch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | nodemon src/server.js -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/README.md -------------------------------------------------------------------------------- /database/sql/database.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/database/sql/database.sql -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/package.json -------------------------------------------------------------------------------- /scripts/seed/db/connect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/scripts/seed/db/connect.ts -------------------------------------------------------------------------------- /scripts/seed/db/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/scripts/seed/db/index.ts -------------------------------------------------------------------------------- /scripts/seed/todo-list/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/scripts/seed/todo-list/data.json -------------------------------------------------------------------------------- /scripts/seed/todo-list/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/scripts/seed/todo-list/index.ts -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/db/connect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/db/connect.ts -------------------------------------------------------------------------------- /src/db/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/db/index.ts -------------------------------------------------------------------------------- /src/graphql/resolvers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/graphql/resolvers/index.ts -------------------------------------------------------------------------------- /src/graphql/resolvers/mutations/createTodoItem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/graphql/resolvers/mutations/createTodoItem.ts -------------------------------------------------------------------------------- /src/graphql/resolvers/mutations/deleteTodoItem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/graphql/resolvers/mutations/deleteTodoItem.ts -------------------------------------------------------------------------------- /src/graphql/resolvers/mutations/updateTodoItem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/graphql/resolvers/mutations/updateTodoItem.ts -------------------------------------------------------------------------------- /src/graphql/resolvers/queries/todoListItems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/graphql/resolvers/queries/todoListItems.ts -------------------------------------------------------------------------------- /src/graphql/resolvers/types/date.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/graphql/resolvers/types/date.ts -------------------------------------------------------------------------------- /src/graphql/types/scalar-type.graphql: -------------------------------------------------------------------------------- 1 | scalar Date 2 | -------------------------------------------------------------------------------- /src/graphql/types/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/graphql/types/schema.graphql -------------------------------------------------------------------------------- /src/graphql/types/todo-list.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/graphql/types/todo-list.graphql -------------------------------------------------------------------------------- /src/models/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/models/index.ts -------------------------------------------------------------------------------- /src/models/todo-list.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/models/todo-list.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/types/db.ts: -------------------------------------------------------------------------------- 1 | export interface DB { 2 | query: any 3 | } 4 | -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/types/query-config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/types/query-config.ts -------------------------------------------------------------------------------- /src/types/response.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/types/response.ts -------------------------------------------------------------------------------- /src/types/status.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/src/types/status.ts -------------------------------------------------------------------------------- /test/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidnguyen11/typescript-graphql-postgres-boilerplate/HEAD/tslint.json --------------------------------------------------------------------------------