tpiekarski / dockerized-restinio Goto Github PK
View Code? Open in Web Editor NEWDocker image for RESTinio, an embedded C++ HTTP/Websocket server with separated build and runtime stages
License: Mozilla Public License 2.0
Docker image for RESTinio, an embedded C++ HTTP/Websocket server with separated build and runtime stages
License: Mozilla Public License 2.0
User Story
As a user I want to pass the host name and port by CLI, so I can configure those values from outside.
Description
When any of those arguments are provided there should be some sane default to fallback to (like the current hard-coded values).
Acceptance Criteria
Argument [short] | Argument[long] | Example |
---|---|---|
-H | --host | --host localhost |
-P | --port | --port 8000 |
-h, | --help | brief description |
Consider to strip down the image for RESTinio, because the Dispatcher, Controller and Router should probably go into an own project using that image.
Especially when this image should be offered at DockerHub for other people.
User Story
As a developer I might want to have the Express Router offered by RESTinio, so I could gain a more convenient routing.
Description
Consider and introduce express routing instead of the basic restinio::run approach.
For details see Express Routing
Acceptance Criteria
Bottom line
When requesting anything the connection gets reset by peer.
Steps to reproduce
curl -X GET http://localhost:8080
Current output
curl: (56) Recv failure: Connection reset by peer
Expected output
Hello world!
User Story
As a developer I want to have a this docker image at docker hub, so I can base other projects upon that docker image.
Description
none
Acceptance Criteria
RESTinio should be updated to the most recent version, possible issues solved and the development of this Docker Image should be restarted once again.
For a better and more convenient handling of endpoints struct could be considered.
For an improved output of current options the operator << could be overloaded to display address and port in the following way: <address>:<port>
.
User Story
As a developer I want to have some CI, so I can be sure that unit tests works, both build stages build something intended and that the final container is answering requests.
Description
none
Acceptance Criteria
User Story
As a developer I want to code against unit tests, so I can be sure that things work and that I won't code something different than expected.
Description
none
Acceptance Criteria
Something red :)
User Story
As a user I want to have a readiness probe, so I can check if the container started and can answer HTTP requests from outside.
Description
Take that current hello world route and transform it to a useful route, starring this readiness probe (:
Acceptance Criteria
curl -X GET http://localhost:8080/ready
- Should return an HTTP 200
User Story
As a developer I want to have a registry of routes, so I can register new routes and their controllers with ease.
Description
none
Acceptance Criteria
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.