- Create a Stamplay account and leave everything by default https://stamplay.com
- Create a Box account https://box.com
- Create an Auth0 account, disable all connections created by default at https://manage.auth0.com
- Go to https://editor.stamplay.com/ and create a new application, save the
application id
for later.
- Go to https://app.box.com/developers/services and create a box application, save
client_id
andclient_secret
.
- Go to https://manage.auth0.com and under the
connections => social
section enablebox
, pasteclient_id
andclient_secret
from the previous step - Then go to the
clients
section and create a new client of typeSingle Page Web Application
- Go to settings and save
client_id
andclient_secret
for the next step. - Set
https://<your-stamplay-application-id>.stamplayapp.com/auth/v1/auth0/callback
as callback URL. - Finally go to
connections
and enablebox
(configured in the previous step).
- Go to settings and save
- Open https://editor.stamplay.com/ and edit the application you created previously, go to the
users => authentication
section and selectAuth0
, fill in your account domain andclient_id
andclient_secret
from the previous step. - Then go to the
objects
section and create an object namedmood
, add two properties namedemail
andmood
. - Browse the
snippets
section and see how the REST API works.
Now you can go to https://<your-stamplay-application-id>.stamplayapp.com/auth/v1/auth0/connect
to check that the authentication flow works.
- Clone
git@github.com:alejofernandez/boxdevdemo.git
- Find and replace
<your-stamplay-application-id>
with your stamplay application id inindex.html
,stats.html
- Install the
stamplay-cli
npm install -g stamplay-cli
- Deploy your project
You'll be prompted to enter your stamplay application id and your API key (located under
stamplay init
dashboard => settings
)stamplay deploy
open https://<your-stamplay-application-id>.stamplayapp.com/
and https://<your-stamplay-application-id>.stamplayapp.com/stats.html
Or browse the existing live demo at
- clmtrackr by Audun Mathias - https://github.com/auduno/clmtrackr - Facial recognition library
- CanvasJS - http://canvasjs.com/ - Charts and graphics