Integrated Haskell Platform
Learn how to configure IHP for use with Filebase.
Last updated
Was this helpful?
Learn how to configure IHP for use with Filebase.
Last updated
Was this helpful?
, or IHP, is a full-stack framework developed to focus on rapid application deployment that utilizes robust code. IHP features a fully managed development environment, integrated development tooling, and quick response times within your production environment.
IHP has native integration for Filebase, making uploading to Filebase within your IHP code a single, seamless function. That means there’s no configuration of Filebase settings or endpoints needed, just your Filebase Access and Secret key pair.
Read below to learn how to use IHP with Filebase.
Config/Config.hs
file.Insert the following line to import the IHP.FileStorage.Config
package:
import IHP.FileStorage.Config
initFilebaseStorage
:Replace FILEBASE_BUCKET_NAME with your Filebase bucket name.
You can do so with the commands:
export FILEBASE_KEY="FILEBASE ACCESS KEY"
export FILEBASE_SECRET="FILEBASE SECRET KEY"
You can also set these as static variables in your IHP ./start
script:
This assumes that data is in the following schema: