To install packages run: npm i
Create .env
file in the project root with the following contents:
FILLOUT_API_KEY=<your-key>
FILLOUT_BASE_URL=https://api.fillout.com/v1
To run the project run: docker-compose up
, if you have Docker installed.
Alternatively just run npm run start
from the project's root dir.
Demo instance: https://railway.app/project/279e996b-0ef1-4717-87bc-2f3d00256c30/service/39cdaf36-4b85-42b1-8fff-8235fcc51219/settings
The endpoint can be accessed directly via this link: https://forms-production-464f.up.railway.app/cLZojxk94ous
If you want to apply filters or pagination you can pass them as a query params.
page=1
limit=3
filters=[
{
"id": "bE2Bo4cGUv49cjnqZ4UnkW",
"condition": "equals",
"value": "Johnny"
},
{
"id": "jB2qDRcXQ8Pjo1kg3jre2J",
"condition": "equals",
"value": "Human resources"
}
]
Current response looks something like this, though I'm not sure if the IDs will change randomly: