EnPULSE Backend is a backend component to store collected data & campaign configuration
First, you need to install Docker (Docker documentation). Next, refer to Supabase documentation to set up a locally hosted instance of Supabase. Do not start the Docker instance yet!
You MUST modify the default credential keys! Use ./utils/generate-keys.sh to generate new keys and passwords.
You can check the new values in the .env file.
Also, paste the volumes folder in this repo to the Supabase folder. This will generate new edge functions under the volumes/functions folder.
Refer to Supabase documentation to start the Supabase instance. This will generate an empty instance without any schema specified. Use the script below to execute install_timescaledb.sql1, schema.sql, and recreate_hypertable.sql in order and fill in the schema.
docker exec -i <db-container-name> psql -U postgres -d postgres < <file-name>.sql
where <db-container-name> is the name of the Docker container where Supabase DB is running. The default name is supabase-db.
If you are having trouble or you have found an issue, please leave it in the GitHub issue tracker.
- Supabase
- EnPULSE: Android library, mobile and smartwatch app for data collection.
- EnPULSE dashboard: Visual dashboard for campaign configuration and data collection.