This is a bare-bones React project, created with the --typescript
version of Create React App, and left un-ejected. This is simply a trivial React view with the libraries for using the CODAP Plugin API.
- Clone this repo and
cd
into it - Run
npm install
to pull dependencies - Run
npm start
to runwebpack-dev-server
in development mode with hot module replacement
Currently there is no trivial way to load a plugin running on a local server with http
into the online CODAP, which forces https
. One simple solution is to download the latest build_[...].zip
file from https://codap.concord.org/releases/zips/, extract it to a folder and run it locally. If CODAP is running on port 8080, and this project is running by default on 3000, you can go to
http://127.0.0.1:8080/static/dg/en/cert/index.html?di=http://localhost:3000
to see the plugin running in CODAP.
The translations are maintained in POEditor. To update the translation strings stored in src/utils/pulled-strings.json
run:
npm run strings:pull -- APITOKEN
where APITOKEN
is visible for your account at https://poeditor.com/account/api.