Skip to content

Releases: cuongndc/graphql-kit

Supporting snake case 🐍 for table name

29 Oct 09:27
eb15c4e
Compare
Choose a tag to compare
v1.2.0

feat: use snake_case for table name (#25)

v1.1.0: support soft deletion

28 Oct 16:54
d7be30d
Compare
Choose a tag to compare
fix: sequelize model (#24)

v1.0.0

30 Aug 16:17
5deb05f
Compare
Choose a tag to compare

graphql-kit

Hits-of-Code
GitHub

🍣 A Node kit with TypeScript, GraphQL, Sequelize, PostgreSQL and awesome tools.

Preparation

How to use?

Update config.ts file (src/components/config.ts)

const config = {
  nodeEnv: process.env.NODE_ENV || 'development',
  port: process.env.PORT || 9000,
  pgHost: process.env.PG_HOST || '127.0.0.1',
  pgPort: (process.env.PG_PORT as number | undefined) || 5432,
  pgDB: process.env.PG_DB || 'postgres',
  pgUser: process.env.PG_USER || 'postgres',
  pgPassword: process.env.PG_PASSWORD || 'postgres',
};

export default config;

Start application

yarn
yarn start:dev

Use with Docker + Docker Compose

yarn docker-compose:start
yarn docker-compose:stop
yarn docker-compose:rebuild

Build GraphQL type

yarn build:graphql

🙌 Awesome

License

MIT © Cuong Tran