Skip to content

Kaist-ICLab/EnPULSE-backend

Repository files navigation

EnPULSE Backend

EnPULSE Backend is a backend component to store collected data & campaign configuration

How to Use

Setting up the default Supabase Local instance

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!

Setting Up the Environment

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.

Running the Docker

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.

Facing problems?

If you are having trouble or you have found an issue, please leave it in the GitHub issue tracker.

Related Repositories

  • Supabase
  • EnPULSE: Android library, mobile and smartwatch app for data collection.
  • EnPULSE dashboard: Visual dashboard for campaign configuration and data collection.

About

The backend component for EnPULSE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors