- Create a
.env
file in the root directory of the project. - Copy the contents of
.env.example
into.env
. - Replace the placeholder values with your actual keys and credentials.
cp .env.example .env
We use (https://www.here.com/docs/category/geocoding-search-v7)[HERE Tracking API revert geocode] to track the user's location. The API's free tier allows 1000 requests per day.
components/CreateNewSafe - function fetchSafeTypes get all safe_types
getAccounts - fetch user account getLocationFromGeocode - does the API call and match/add it to Supabase getSafes - as it is, doesn't connect to user_id supabaseLocation - Looks if the user location is already in the DB, and if it's not, adds it to the DB transaction.json - Placeholder data for the history transaction, while the blochchain connections are still under development.