Typescript GraphQL API for crispy-web
API based on Apollo express server.
Clone the crispy-api branch of this repository:
git clone git@github.com:WiseEngineering/crispy-api.git
Go to project folder:
cd crispy-api
To specify your own configuration you could use crispy.js config file.
| Field | Type | Description |
|---|---|---|
| mysql | MysqlAPI | Mysql API configuration |
| server | ServerAPI | Server API configuration |
Mysql API configuration
| Field | Type |
|---|---|
| host | string |
| port | number |
| user | string |
| password | string |
| database | string |
Server API configuration
| Field | Type |
|---|---|
| port | number |
Command to start up server
docker-compose up -d
Run migration:
docker exec -it crispy-api yarn migrate
if you use docker-compose you can get container name use
docker ps
http://localhost:4444/graphql/playground