Typescript/Express API running in GCP (School Account) using Cloud Run/Cloud SQL
npm run test
All Infrastructure is Terraformed see ./deploy
Environment Variables are located in .envrc
and .deploy/deploy.sh --with-docker
will use those env vars to do the following:
- build container
- push tag to
gcr.io
- terraform apply
- run flyway migrations
/users/d8ed8864-b82f-4b5b-a064-d74c664c7715/balance
/users/056b6a9b-a119-4c85-86c4-e94cf280806f/transactions/merchant/cb21b581-cd5d-46c0-8d9a-c054ddaeeb92
/users/5ff1bc53-93c3-478c-a328-2062effaddbf/transactions?start=2018-01-01&end=2019-01-01
/users/45ee9314-f9b5-4e1f-aac8-c0afc2ce9d23/transactions/summarize
/users
Body:
{
"email": "[email protected]",
"firstName": "Soraya",
"lastName": "Lanza",
"password": "hello123"
}
/users/7fa7f133-6919-4893-88d4-885dcf22200f/transactions/authorize
Body:
{
"amountInCents": 233433344
}
- Routes are authed using basic auth
/users/7169ef9f-f922-4a37-b1be-9bef9582f448/update/email
/users/d8ed8864-b82f-4b5b-a064-d74c664c7715/update/password
/users/d8ed8864-b82f-4b5b-a064-d74c664c7715/update/name
//Email
{
"email": "[email protected]"
}
// Password
{
"password": "afa;dfslm"
}
// Name
{
"firstName": "Sandra"
"lastName": "Oh" // only one is reqquired
}
/merchants/d67d9bd4-e889-4961-b523-cd6c78acbdc7/update
- Repository Tests
- Postman Collection
- DRY up error handling
- Cleanup Queries / More Types
- fewer magic strings/numbers