A sample project needed for a security course to connect web service to database

This is a sample project needed for a security course to “connect web service to database”.

Why this project suits alignment purpose

It connects to the PostgreSQL database with basic authentication.
On this web server, you can make a gateway with Nginx It would be better if you do it in the
docker network without so web app would not have internet access, and it would be a true gateway.
But easier is to send requests to localhost:8000 from Nginx.

How to start web app

It would be much easier with docker. Just run docker compose up (or docker-compose up if you have an older version).
The server will start on http://localhost:8000, and it will be also available from the network. If you want to disable it
just modify Dockerfile in the last row

 

 

 

To finish reading, please visit source site