Is in contruction, but its will be ready soon. Saludos!
admin: configure the name in .env
Database made in postgreSql.
- Run psql: psql postgres your_user
- Create database: create database raspberryremote.
- In the folder app: export FLASK_APP=app.py.
- In /src/init.py edit the line: app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://xxx:xxx@localhost/raspberryremote' and replace xxx with the username and password with which you created the database
- flask db init.
- flask db migrate -m "something"
- Before running the app you have to register the admin that you configured in the .env file. For this you have to comment lines 48 and 49 in /src/users/views.py, and uncomment the line 64 in /src/templates/base.html to enable the Register option.
- Once you registered the administrator, uncomment lines 48 and 49 in /src/users/views.py, and comment again the line 64 in /src/templates/base.html. That way only your administrator will be able to register users from now on.
You have to configure the shh service on the remoteserver and add the username, password and ip (of the remoteserver) on the host where you are running this code, in the file /src/core/views.py