Skip to content

Service listening for post objects via an API endpoint and saving them to an external database

License

Notifications You must be signed in to change notification settings

flam-flam/submission-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

submission-service

Service listening for submission objects via an API endpoint and saving them to an external database

Quickstart

You can quickly build & serve the app using the following commands

docker build ./src/flamflam.SubmissionService -t submission-service-image
docker run -it --rm -p 5000:80 submission-service-image

Once done you can look at the API definitions on http://localhost:5000/swagger/index.html

Prerequisites

In order to work the on the application you'd need the following:

Tests

The app is relying on a set of the integration tests. In order to execute the test, run the following commands

cd .\src
dotnet test

Configuration

In order to get the application to properly function, you'd need to specify the DB configruation.

This can be done via appsettings.json file, or alternatively via environment variables, example below:

environment:
    FlamFlamDb:ConnectionString: [Connection string]
    FlamFlamDb:DatabaseName: [Db name]
    FlamFlamDb:SubmissionsCollectionName: submissions

NOTE: if both values in appsettings.json & environment variables are supplied, the environment variables will be prioritized.

About

Service listening for post objects via an API endpoint and saving them to an external database

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •