At this end of this guide you'll have a working Node.js Express server that leverages Evaporate Brightcove.
If you plan to partner with Brightcove and build integrations with Video Cloud or other Brightcove products, sign up for the partner program. If you meet the criteria for becoming a partner, our team will set you up with an account
If you're a Brightcove customer, you should already have access to Video Cloud.
We'll need Brightcove API credentials. The Brightcove API wraps the AWS STS service, such that you no longer need to manage nor configure an S3 bucket to use this service. Temporary credentials are issued for each upload which this module handles transparently.
Inside Video Cloud:
- Click the ADMIN link in the Studio header.
- Click the API Authentication link. The API Authentication page will open displaying your current client registrations.
- Click Register New Application.
- Enter a Name and Short Description for the client registration.
- Select one or more of your accounts for authorization.
- Check the following permissions:
- CMS: * Video Read * Video Read/Write
- Dynamic Ingest:
- Create
- Push Files
- Players:
- Read
- Click save
- Store the Client ID and Secret for later steps
You must already have Node.js installed on your platform and have npm (or yarn) setup. The following steps will download this source code from github and work on the example code.
git clone https://github.com/BrightcoveOS/evaporate-brightcove.git
cd evaporate-brightcove/examples/nodejs
npm install
cd ../..
npm install
cp .env-sample .env
vim .env # Replace dummy credentials with real values
npm start
Open .env in your text editor and replace all the values there with the credentials from above.
npm start
This command watches the source code for the npm module and rebuilds as it changes; it also starts the Node.js example app, watching that directory for changes too. You can edit nearly any file in this repo and see the changes right away.
Then navigate to localhost:5000 to see the code in action. If you're looking for a video to upload, try coverr.co. You should see a new video appear in Video Cloud right away. Shortly, you'll see the thumbnail and be able to playback the video.
At this point you should have a fully functional working sample app.