Comment on page
Installing Ferp in Your Application
Depending on your project, needs, and target audience, there are a number of ways to get up and running with Ferp within seconds.
You know the drill!
npm install --save ferp@^2
# OR
yarn add ferp@^2
And import Ferp into your code-base:
From es6/babel
From NodeJS
import { app, effects } from 'ferp';
index.js
const { app, effects } = require('ferp');
Of course, you don't need to install anything at all. Content delivery networks (CDNs) like unpkg work great!
Standard es5 javascript
Modern Browsers
index.html
<script src="https://unpkg.com/ferp@2"></script>
const { app, effects } = window.ferp;
<script type="module">
import { app, effects, util } from 'https://unpkg.com/ferp?module=1';
</script>
With a CDN, there is no install needed to get going. Of course, you may want to look into Service Workers if you want to support your application while offline.
Last modified 2yr ago