Skip to content

lmiller36/javascript-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript-starter

A few simple examples to help you get started using the Clarifai Javascript client and API

How to get started

Download this repo, simply invoke

$ npm install

Usage

To get started, create an account at developer.clarifai.com.

Create an application, and get your Client ID and Client Secret.

This basic starter uses your Client ID and Client Secret to get an access token. Since this expires every so often, the client is setup to renew the token for you automatically using your credentials so you don't have to worry about it.

You'll notice that in the .gitignore file, it references a keys.js file. This is for security purposes, so you don't share your Client ID and Client Secret with others. Add the following to that file:

var CLIENT_ID = 'your ID here';
var CLIENT_SECRET = 'your secret here';

You'll also notice a custom_train.js file which serves as a reference for Custom Training. Any custom models that you create (under these credentials) will appear in the dropdown menu on index.html, next to the "Custom" label

Example Output

Note the "Add image to Application" button on the bottom left of the image. This will automatically add the image to the application that is associated with your credentials!

About

A few simple examples to help you get started using the Clarifai Javascript client and API

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors