This demo server shows the way how to integrate with Flexatar API. Allows to handle your subscriptions and flexatars.
- Obtain FLEXATAR_API_SECRET from Flexatar Web Page.
- Create .env file "flexatar-demo.env" with content FLEXATAR_API_SECRET=
<your api key> - Edit run-server.sh or run-docker.sh to link your .env file
Deploy a local demo web app showcasing integration with the Flexatar SDK.
Install Node.js
./run-server.sh
Note: On windows use
Git Bashto run script.
Install Docker
./run-docker.sh
Visit the demo server in your browser at: localhost:8081/main
Find how to use flexatar SDK on the front end in:
src/vcam-creator.js
src/vgen-creator.js
Find how to interact with our API on backend in:
handlers.js