A simple media player using flask and Gstreamer with WebRTCsink
Before running the project, you need to set up some environment variables. These variables are essential for configuring the database and application settings. You can define these variables in a .env
file located at the root of your project directory.
Here is an example of what the .env
file should look like:
POSTGRES_USER=username
POSTGRES_PASSWORD=password
POSTGRES_DB=db
COMPOSE_FILE=docker-compose.yml:compose.dev.yml
FLASK_PORT=5000
SECRETE=secret_key
POSTGRES_USER
: This sets the username for your PostgreSQL database. For development, you can usetestusr
.POSTGRES_PASSWORD
: This sets the password for your PostgreSQL database user. For development, you can usepassword
.POSTGRES_DB
: This specifies the name of your PostgreSQL database. For development, you can usetestdb
.COMPOSE_FILE
: This defines the Docker Compose files to be used. In this case,docker-compose.yml:compose.dev.yml
is specified for development configuration. For production, we will use onlydocker-compose.yml
and for testing we will usedocker-compose.yml:compose.test.yml
FLASK_PORT
: This sets the port on which your Flask application will run. The default is5000
.
- Create a file named
.env
in the root of your project directory. - Copy and paste the example environment variables into the
.env
file. - Save the file.
Once you have set up the .env
file, you can proceed with running the project using Docker Compose or your preferred method.
This is a test. I just wan to know if I can push it to github.com