Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Anvil onsite interview - write a script using Anvil's API

License

NotificationsYou must be signed in to change notification settings

anvilco/internal-coding-challenge

Repository files navigation

This repo contains a few things:

  • scripts/get-pdfs.js - the script you'll edit and run to get PDFs back from Anvil.
  • data/templates.json - the data you will use to locate the PDF template within Anvil, and the data to fill on each PDF.
  • various tools/infrastructure to run the script. How to use it below!

The Task

You are given an array of objects containing all the data required to fillX number of PDFs.Each object includes:

  • formsToFill: an array of PDF template IDs (Cast EIDs) used for filling PDFs via Anvil's Node.js client.
  • Other fields: actual data to be filled into the PDF.

Your job is to write a script that performsthree tasks (order does not matter):

  1. Fill all PDFs with all people’s data

    • Output: All generated PDFs should go in thepdfs folder.
    • File naming: Use the form title.Example: ForAcord 1, output aspdfs/Acord 1.pdf.
  2. Fill only USPS 1583

    • Output: Place the result inpdfs as well.
    • File naming: Use the EID.Example:pdfs/<eid>.pdf.
  3. Sort all forms by prevalence

    • Output format:

      {"eid":<number of references>,"anotherEid":<number of references>}

When you're ready to start coding, request an API key to interact with Anvil from your script.


Important Notes

  • First5–10 min: Formulate your approach
  • Next30–40 min: Implementation
  • Last10–20 min: Review
  • Lodash is available for utility functions.
  • This exercise isnot about writing the best script ever.Focus on understanding the problem and communicating your decisions clearly.

If JavaScript feels challenging today, write pseudocode and consider edge cases!We care about yourthinking process more than perfect syntax.

About

Anvil onsite interview - write a script using Anvil's API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp