https://github.com/visualbean/mergesort_api
https://github.com/visualbean/mergesort_api
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/visualbean/mergesort_api
- Owner: VisualBean
- License: mit
- Created: 2019-05-28T17:16:31.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2020-12-04T08:11:19.000Z (over 5 years ago)
- Last Synced: 2025-07-14T17:42:55.784Z (11 months ago)
- Language: C#
- Size: 52.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yet another timed challenge
Mostly to show off coding style.
## Description
Create an API to Sort integer arrays. Arrays should be sorted as part of a jobrunner, and the controller should give back an ID of a job, that can then be looked up for status and result.
# Mergesort_API
Please clone or download the project.
## Getting started - Local windows machine edition
### Build
run `.\build.ps1` from the root of the project, either in your terminal of choice or run the powershell script directly (right click -> Run in powershell).
The script, builds the solution, runs the tests and publishes the release version of the service.
The release version is published to `Mergesort_API\bin\Release\netcoreapp2.2\win-x64`
### Run
run ```.\run.ps1``` from the root of the project, either in your terminal of choice or run the powershell script directly (right click -> Run in powershell).
This will run the service in the console as a selfhosted api.
## Getting started - Docker (Linux container) aka. serious business edition.
### Build & Run
1. Run `docker build -t mergesort .` from the root of the project.
2. Run `docker run -d -p 5000:5000 --name sorting-api mergesort`
Now you can go to http://localhost:5000 to browse the swagger docs and test it out.
## Using it
The API starts a webserver on http://localhost:5000
The documentation is in the root of the url, so please browse to http://localhost:5000 for the swagger docs