- Home
- Architecture
- DevOps
- Using
- GraphQL API
- Roadmap
In the root folder there is a Makefile to KISS the development environment creating.
After clone the git repository, you need install node dependencies and run docker with the db. Look for the make commands avalailable below:
make start
make db
Requires make db and to create file .envs/default.json to overrides environment variables
make sam
Requires make db
make migrate-dev
make dev
make test
make test-dev
make test-dev
make migrate
make mb-dev
Any changes on file pipeline.yml can be deployed with this comnand.
Requires make mb-dev
make deploy-dev
Delete the CloudFormation stack and S3 bucket deployment
make cleanup-dev
There is a npm bug in one dependency that does not support mtime timestamps, I don't have more know how about that, but this command it's a workaround to solve.
make fix-npm-bug
See the Makefile commands to learn more about the commands.
You can create a .env file in the api/src folder to configure the environment variables or update the docker-compose.yml and change it self.
APOLLO_KEY=<your apollo studio key>
DB_HOST=localhost
DB_NAME=example
DB_USERNAME=example
DB_PASSWORD=example
DEBUG=true
For easy debug use the VSCode JavaScript Debug Terminal and run the make dev
command.