Initial Setup
Setting up ProposeJS is straightforward. You have three options for including ProposeJS in your project:
Option 1: Using npm
- Install PropsoeJS via npm
- Include the ProposeJS script file from CDN by adding the following line to the
<head>section of your HTML file: - Download
ProposeJSengine file and upload direct into your project then connent ProposeJS file with your html files .
Option 2: Using CDN
Option 3: Download
After including the engine.main.js file, ProposeJS will look for a propose.json file in the root directory where we can define our proposals.
We need to create propose.json file in root directory manually if we include proposeJS using CDN or downloaded engine.min.js file
Directory structure
your-project/
│
├───index.html
│
├───propose.json
│
└───engine.min.js