Getting Started¶
Installation¶
Download flr and install the Python dependencies, which are provided in the requirements.txt file.
git clone https://github.com/julianss/flr.git
cd flr
pip3 install -r requirements.txt
Compile the frontend app.
cd svelte_client
npm install
npm run build
Run the example app¶
Apps are located in the apps/ folder. We will now run the included example app.
Every app should have a corresponding configuration file containing the environment variables
necesssary for running it. Edit the .example file to provide the necessary
credentials to a PostgreSQL instance.
flr_app=example
flr_db_name=example
flr_db_user=youruser
flr_db_pass=yourpassword
flr_db_host=localhost
flr_db_port=5432
Run the server by executing the run.sh script passing as argument the name of the configuration file without the dot.
./run.sh example
If the Postgres user you provided has database creation privileges, the database will be automatically created. If not, you must ensure the database exists before running flr.
If the database connection is successful, you will be prompted with a bunch of SQL commands.
Type “yes” and enter. This will create the database tables. When it’s done point your browser
to localhost:6800 to open the app. You will see the login screen.
The default user is admin, and the password is also admin (this password can be changed
through the env variable flr_admin_pass).