This PR adds a first version of the Bestiary server script. By default, the server runs a WSGI app because it is supposed to be deployed with a reverse HTTP server in production. However, it can run a HTTP server when the --dev flag is activated. When this flag is active, the server will also serve the UI interface. To test it, you should follow the next steps.
Install the new dependencies with poetry install
$ poetry install
Build the UI interface artifact. The static files will be copied to bestiary/core/static and bestiary/core/templates.
This PR adds a first version of the Bestiary server script. By default, the server runs a WSGI app because it is supposed to be deployed with a reverse HTTP server in production. However, it can run a HTTP server when the --dev flag is activated. When this flag is active, the server will also serve the UI interface. To test it, you should follow the next steps.
Install the new dependencies with poetry install
Build the UI interface artifact. The static files will be copied to bestiary/core/static and bestiary/core/templates.
Copy the static files to its destination
Run the server
The url http://localhost:8080 should show the login page.
To test it with a reverse proxy like NGINX using docker-compose the next files are necessary:
/tmp/uwsig_params
/tmp/nginx.conf
/tmp/nginx.yml
services: nginx: image: nginx:latest container_name: webserver restart: unless-stopped ports:
docker-compose -f /tmp/nginx.yml up
The run the server with the next command:
And run docker compose with:
The URL http://localhost:8080 should show the login page.