This repository contains the internal REST API backend for tobymeehan.com/downloads. For the frontend and other parts of the website see tobymeehan.com.
Example appsettings.json - environment variables are also supported.
{
"Data": {
"Postgres": {
"ConnectionString": "postgres-connection-string"
},
"S3": {
"Bucket": "S3-bucket-for-download-files",
"Credentials": {
"AccessKey": "aws-access-key",
"SecretKey": "aws-secret-key"
},
"Configuration": {
"Region": "aws region (e.g us-east-1)",
"ServiceUrl": "custom service url (overrides region)"
}
}
}
}In src/TobyMeehan.Com:
- Start postgres
docker compose up- Apply migrations
dotnet ef database update- Run app
dotnet rundotnet testIntegration tests require docker for Postgres and LocalStack test containers. Test coverage still has some way to go.