Skip to content

TobyMeehan/Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

704 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains the internal REST API backend for tobymeehan.com/downloads. For the frontend and other parts of the website see tobymeehan.com.

Configuration

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)"
      }
    }
  }
}

Run

In src/TobyMeehan.Com:

  • Start postgres
docker compose up
  • Apply migrations
dotnet ef database update
  • Run app
dotnet run

Test

dotnet test

Integration tests require docker for Postgres and LocalStack test containers. Test coverage still has some way to go.

About

Internal API backend for downloads.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors