https://github.com/cuongndc9/graphql-to-rest-demo
The demo πΉ for converting GraphQL to REST API.
https://github.com/cuongndc9/graphql-to-rest-demo
103cuong demo docker graphql
Last synced: 4 months ago
JSON representation
The demo πΉ for converting GraphQL to REST API.
- Host: GitHub
- URL: https://github.com/cuongndc9/graphql-to-rest-demo
- Owner: cuongndc9
- License: mit
- Created: 2020-08-12T07:13:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-07T19:25:05.000Z (4 months ago)
- Last Synced: 2025-03-07T20:28:28.352Z (4 months ago)
- Topics: 103cuong, demo, docker, graphql
- Language: TypeScript
- Homepage:
- Size: 144 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Not using GitHub? Find me on [LinkedIn](https://www.linkedin.com/in/cuong9/)!
# graphql-express-kit[](https://hitsofcode.com/view/github/103cuong/graphql-express-kit)
[](https://github.com/103cuong/graphql-express-kit/blob/master/LICENSE)> πΈπ¦ A Node kit with TypeScript, Express, GraphQL, Sequelize, PostgreSQL and awesome tools.
## Prepare
- [Node](https://nodejs.org/en/)
- [Yarn](https://yarnpkg.com/)
- [Docker](https://www.docker.com/) (*optional)
- [Docker Compose](https://docs.docker.com/compose/) (*optional)
- [Dockstation](https://dockstation.io/) (*optional)### How to use?
#### Update config.ts file (src/components/config.ts)
```typescript
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
```sh
yarn
yarn start:dev
```### Use with Docker + Docker Compose
```sh
cd scripts && ./start.sh
```π Awesome
## License
MIT Β© [Cuong Tran](https://github.com/103cuong)