Just install Docker and run ./command/start-dev.sh, and you should have an operational development environment.
- Start the development environment:
./command/start-dev.sh - View a list of docker containers:
docker ps - Connect to a docker container (e.g. to see its filesystem):
docker exec -it <container id> bash - Work on a GraphQL query:
http://localhost:3000/graphql
Run ./command/deploy.sh to push to Docker Hub and ec2-user@terencelei.com. The first time you do this, you'll need to create a Docker Hub account that I can add to the Sheepie organization, and then docker login.
| Port | Description |
|---|---|
| 3000 | Client |
| 3001 | Server (1) |
| 3002 | Postgres |
(1) Server is used by client for GraphQL queries. Relay by default assumes that this will be at /graphql on the same host, so configuration should look as follows:
| External path | Internal port | Internal path |
|---|---|---|
| / | 3000 | / |
| /graphql | 3001 | / |