Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-12T14:01:14.000Z (over 4 years ago)
- Last Synced: 2024-10-23T23:15:40.476Z (3 months ago)
- Topics: 103cuong, demo, docker, graphql
- Language: TypeScript
- Homepage:
- Size: 143 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graphql-express-kit
[![Hits-of-Code](https://hitsofcode.com/github/103cuong/graphql-express-kit)](https://hitsofcode.com/view/github/103cuong/graphql-express-kit)
[![GitHub](https://img.shields.io/github/license/103cuong/graphql-express-kit.svg)](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)