Giter VIP home page Giter VIP logo

dockerized-restinio's People

Contributors

tpiekarski avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dockerized-restinio's Issues

As a developer I want to have some CI...

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

  • All available unit tests should be run.
  • Both build stages should be used to build images,
  • Final docker container should be started from the runtime stage
  • Request should be answered with an HTTP 200 after sending a request to http://localhost:8080.

As a developer I want to have a registry of routes...

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

  • Provide a registry for routes and controllers
  • Implement the registry pattern for being able to map routes to derived classes of the ControllerInterface
  • (Find a solution how to deal with different HTTP methods)

As a user I want to have a readiness probe...

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

As a user I want to pass host name and port by CLI...

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

As a developer I might want to have the Express Router...

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

  • Consideration about benefits
  • Leverage express routing

Connection get reset by peer

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!

As a developer I want to code against unit tests...

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.