Develop, Render, and Deploy JavaScript for a FileMaker App
This environment allows a FileMaker developer to start coding their widget and see the results right away in a FileMaker file. Once done developing, the can be inlined and pushed to the FileMaker file for use offline.
It's a template file, so you can use to start other projects.
- A repository template on Github
- A basic html / JS set up.
- package.json file for install
- A FileMaker file to show the widget rendered
- Scripts to build and upload the inlined code to FileMaker
npm install
npm start
- Open the jsDev.fmp12 file.
- Allow it to work in Dev mode.
At this point you should see the web viewer on the layout load up with the HTML and JavaScript here. Edit the JavaScript or the HTML and you'll see the render in the web viewer update.
There’s always been quite the barrier in JavaScript development in FileMaker. This wall is made up of different pieces: knowing JavaScript, writing code efficiently, seeing how it works in FileMaker, using data from FileMaker, and deploying to the app.
With a proper JS-in-FM development environment, FileMaker developers have most of the blocks of the wall removed. This set up allows the quickest way for a developer to create an integration using JavaScript. This course will immerse you in the environment. By the end of your stay, you’ll be fluent in creating simple and complex problem-solving widgets for your application. Through studying the content and practicing for yourself, you’ll feel at ease with this entire workflow.
As a busy FileMaker developer, how do I build widgets efficiently and consistently?
- Become fluent with VSCode for this environment's needs.
- Learn some
git
workflows. - Import and use JavaScript libraries.
- Assemble the HTML and JS and FileMaker scripting and layout objects to render a widget.
- Summarize the dev server: its structure and use.
- Collect data and send it to the widget.
- Deploy the code to FileMaker.
Throughout this course, we'll use projects to practice the workflow. These courses include:
- A Dashboard
- A Datatable
- A Date Picker
- A Progress Indicator
- A Survery of Questions
The end result will be to take the dev environment and produce something on your own, with our support. You’ll be able to do your work and submit it.
- Importing
esm
modules - Link to cdn
- NPM Commands
npm start
npm build:upload
npm install
npm uninstall
- GIT commands
git init
git commit -m ""
git push
git pull
- etc
- JS ES6 code syntax
- Loading code in a web viewer methods
- Calling FileMaker for data