[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kendarorg/the-protocol-master-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Protocol Master Sample

This is a simple environment to test The Protocol Master application. We will mock without a line of code the database and a rest api of a simple TODO web application. (PS tanks patrick-baker for the UI!)

Just for fun this is a .NET Core application with Entity Framework and very basic JQuery-based Front-End

  • The documentation for the protocol master is here

Prerequisites

  • A Docker environment
  • The Docker environment address (let's use DOCKER_SERVER for now)

Machine Dependant Stuffs! Beware

All .NET applications run out of the box only on Intel architecture, that means

  • Platform: linux/amd64
  • Target Architecture: amd64

For Apple M processors should work the following, change the HttpServer and RestServer dockerfile according to your needs (see on Microsoft for further info on the subject)

  • Platform: linux/arm64
  • Target Architecture: arm64

What to do

If you have Intellij or know what are *.http files you can configure this setting the myhost variable to DOCKER_SERVER

Startup

  • Clone the repo https://github.com/kendarorg/the-protocol-master-samples.git
  • Configure your browser to use DOCKER_SERVER:29000 as HTTP/S Proxy
  • Navigate to the "net-core" directory
  • Run docker-compose up to generate the environment
  • Several containers will be created
    • net_core_tpm: The Protocol Master server
    • db_mysql: The mysql database
    • net_core_http: The web-ui
    • net_core_rest: The rest back-end
  • Download the SSL certificate from http://localhost:8081/api/protocols/http-01/plugins/ssl-plugin/der and install it as a trusted root certificate

You can check now the application navigating (in the proxied browser) to anything you want, and you will se the calls flowing on the console.

You can even try the application on http://net_core_http/index.html but for the sake of simplicity please delete all tasks before continuing the tutorial

Recording

Look Ma, NO DATABASE

Look Ma, NOT EVEN THE API SERVER

If you like it Buy me a coffe :)

paypal