https://github.com/albert-gonzalez/graphql-game-library
Simple example of GraphQL in Node and React
https://github.com/albert-gonzalez/graphql-game-library
apollo-client apollo-graphql graphql react typescript
Last synced: 4 months ago
JSON representation
Simple example of GraphQL in Node and React
- Host: GitHub
- URL: https://github.com/albert-gonzalez/graphql-game-library
- Owner: albert-gonzalez
- Created: 2019-04-18T18:18:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:00:44.000Z (over 2 years ago)
- Last Synced: 2025-01-20T23:18:30.133Z (5 months ago)
- Topics: apollo-client, apollo-graphql, graphql, react, typescript
- Language: TypeScript
- Homepage:
- Size: 4.8 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL Game Library Example
## How to install
* Clone this repository
* Go to the repository path
* run:
* Local:
* Server:
* Enter the server folder
* Run `npm install` to install node_modules.
* Run `npm start` or `npm run build` to run in dev or prod mode
* Run `npm test` to run tests
* Frontend:
* Enter the frontend folder
* Run `npm install` to install node_modules.
* Run `npm start` or `npm run build` to run in dev or prod mode
* Run `npm test` to run tests
* Docker:
* Run `docker-compose up` to execute server (localhost:4000) and frontend (localhost:3000) in devel mode.
* Run `docker-compose run games_server npm test` to run server tests
* Run `docker-compose run games_frontend npm test` to run server tests
* Open `http://localhost:4000` in the browser to access GraphQL Playground
* Open `http://localhost:3000` in the browser to access the frontend app