Skip to content

bramburn/LeanCodeTask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeanCodeTask

Application connects to Reddit api to get images.

Available api endpoints:

  • /random - fetches random image url from top 100 hot posts in a given subbreddit
  • /history - fetches downloaded images history

Run the application with docker-compose

Linux

export RedditApi__ClientSecret="<Your Reddit api client secret>"
docker-compose up -d --build

Windows

$env:RedditApi__ClientSecret = "<Your Reddit api client secret>"
docker-compose up -d --build

Application runs on http://localhost:8080

Configure subbreddit

By default application uses r/poland subbreddit. In order to change the subrreddit you have to change the value in appsettings.json.

"RedditApi": {
    ...
    "Subreddit": "<type subreddit name e.g. bitcoin>"
    ...
}

About

LeanCode recruitment task

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published