The project provides a documentation in the GitHub Wiki page of this project.
This project requires node.js
, npm
and python 3.8
to run as intended. The Web-App is build using React
.
-
Download and install
node.js
-
Install the dependencies via
>>> cd log-skeleton >>> npm install
-
Create a
.env
file in thelog-skeleton
directoryPaste in the following line and replace the placeholder.
REACT_APP_API_URL=<replace-with-url-to-your-backend>
The project provides a flask
webserver that is able to serve the javascript
bundle build with react-scripts
.
- Download and install
python 3.8
- To install
flask
run:>>> pip install flask
The project provides two different ways to serve the application:
- 🐳 Deploy as a Docker container
- 🐍 Deploy as a plain python application
In order to run the webserver in a docker
container, follow the given steps:
Docker is required on your system to follow the deployment steps. In case you have not installed it yet, please head over to Docker's website and install it.
To build the javascript
bundle that the server will serve run the following commads:
>>> cd log-skeleton
>>> npm run build
These commands generate a directory called build
the
/server/
directory of the project.
To build the docker container run:
>>> docker build .
Run the container with the following command:
// Replace `<PORT>` with the port the application should listen on.
>>> docker run -p <PORT>:<PORT> -e PORT=<PORT> <id-of-the-container>
In order to run the application as a python app without a container.
To build the javascript
bundle that the server will serve run the following commads:
>>> cd log-skeleton
>>> npm run build
These commands generate a directory called build
the
/server/
directory of the project.
Run the webserver with the following command:
>>> python -m server.server