Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/croquiscom/graphql-project-sample
https://github.com/croquiscom/graphql-project-sample
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/croquiscom/graphql-project-sample
- Owner: croquiscom
- Created: 2019-07-08T07:27:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T23:41:23.000Z (about 2 years ago)
- Last Synced: 2024-04-14T23:58:25.850Z (9 months ago)
- Language: TypeScript
- Size: 787 KB
- Stars: 14
- Watchers: 30
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GraphQL project sample for croquis.com projects
# Need for Start
1. docker
2. docker-compose
3. npm or yarn# How to start
1. Start database servers: `./tools/db/start.sh`
2. install [PM2](https://github.com/Unitech/pm2) : `npm install -g pm2 OR yarn global add pm2`
3. Start services: `cd services/user && pm2 start tools/server.js`
4. Run playground: http://localhost:6400/graphql# Used frameworks/libraries
* [TypeScript](https://www.typescriptlang.org/)
* [Apollo Server](https://www.apollographql.com/docs/apollo-server/)
* [CORMO](http://croquiscom.github.io/cormo/)
* [TypeGraphQL](https://typegraphql.ml/)
* [Mocha](https://mochajs.org/)
* [Chai](https://www.chaijs.com/)
* [Sinon](https://sinonjs.org/)
* [Rinore](https://github.com/croquiscom/rinore)# Sample queries
## Create a user
```graphql
mutation {
createUser(input: {
full_name: "Test User"
}) {
id
full_name
}
}
```## Get users list
```graphql
{
user_list(full_name_istartswith: "T") {
item_list {
id
full_name
}
}
}
```