Skip to content
Arthur Guiot edited this page Apr 30, 2018 · 1 revision

Installing

In order to install ProType, you'll need to follow the instructions, depending on your platform.

Browser

In your index.html, write the following lines at the end of your <body> tag:

<!-- ProType -->
<script src="https://unpkg.com/protype.js" charset="utf-8"></script>
<!-- Your JS file (make sure it's after ProType) -->
<script src="/js/main.js" charset="utf-8"></script>

Cordova or Electron

First, cd to your www directory (or wherever is your HTML code) in a terminal. Then, run:

npm i protype.js

And, in your index.html, write the following lines at the end of your <body> tag:

<!-- ProType -->
<script src="./node_modules/protype.js/dist/protype.min.js" charset="utf-8"></script>
<!-- Your JS file (make sure it's after ProType) -->
<script src="/js/main.js" charset="utf-8"></script>

You're done!

Clone this wiki locally