Awesomeflix - blank template
Developing
- Clone this repo
- Do
npm install
- Run
http-server
in the base folder (not inanimation/
) - Visit http://127.0.0.1:8080
- Open developer tools
- Add animation HTML to
animation/animation.html
- Add assets to
animation/img/
- Install fonts, locally
- Add animation CSS to
animation/animation.css
- Create test input for the animation and place in
animation/input.json
- Add approriate bindings in
animation/animation.js
(NB. All imported data is in $scope.data)
Uploading to S3
- Move to parent folder
- Add this folder to
aws-upload.conf.js
s3-upload
Testing Video Creation
-
Create
video.json
in this folder{ "input": { "html": "https://s3-ap-northeast-1.amazonaws.com/test-animations/***/index.html", "mp3": "https://s3-ap-northeast-1.amazonaws.com/test-animations/***/animation/audio.mp3", "data": { /* your test data for video */ } }, "upload": true }
-
Post this JSON to the API
curl -H "Content-Type: application/json" -X POST --data @video.json http://127.0.0.1:3000/videos/test
-
Visit Frontend website to view result
Deploying
- Make sure you're building the whole timeline