kkoci / missiondigital

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is the proof of concept for Nuvolar

Tips on how to use it

This app has been dockerized, so all the process occurs inside docker containers.

  • Clone this repo

Once it has been cloned, run:

docker build -t missiondigital1 .

This will build our base image, that we will run with docker-compose:

docker-compose up

We can then send POST requests with, for example, Postman:

Headers We set up the headers Wrong Body Payload We Set up the payload, this is an example of a wrong one Correct Payload Expected (correct) Payload Expected Payload

Don't forget to run docker-compose down afterwards.

**

Tests:

**

For the tests I have created another Docker Image, which has Dockerfile.test as name.

It can be built with:

docker build -t missiondigitaltest -f .\Dockerfile.test .

And then ran with:

docker run missiondigitaltest

Visual example

There is a workflow for Github Actions, it has 2 jobs, one to build/run/inspect the container, and one to run the tests.

It is located at .github/workflows/action.yml

On push it will run the actions, You can clone this repo, then remove THESE characters and push to test it.

About


Languages

Language:Python 98.1%Language:Dockerfile 1.9%