Sign inSign up

researchranks/alpine.node.typescript.api.youtube

By researchranks

Updated over 8 years ago

Docker Template For Youtube API Development

Image
0

240

researchranks/alpine.node.typescript.api.youtube repository overview

Docker: Youtube API

stack: alpine.node.typescript.api.youtube

  • Docker:
    • Alpine: 3.6.2
    • Node: 8.5.0
    • TypeScript: 2.5.2
    • Lite-Server: 2.3.0
    • Google APIS: 27.0.0
    • Youtube API: 3.0.0
    • Google-Auth-Library: 1.3.1
References:
Setup:
  • folder structure for docker.alpine:

    • var/www/app/
  • folder structure for the lite-server:

    • var/www/app/public/index.html
  • tokens for authentication:

    1. youtube.api.client.json > created from google developer console
    2. youtube.api.key.json > created from google developer console
    3. youtube.api.single.json > created from google developer console
    4. youtube.api.token.json > created from node app
NPM Installs
  • Lite-Server: 2.3.0
    • small minimal http server for web view
  • Google APIS: 27.0.0
    • official google node api authentication
    • Youtube API: 3.0.0
  • Google-Auth-Library: 1.3.1
    • official google node api for oauth2 authentication
Example:
  • Docker run wants absolute paths
  • docker-compose is just a stand-in for the docker-engine client
  • Start with docker-compose up
  • Otherwise use our custom bash command dockr for complex docker shortcuts
live:
docker run \
-v $PWD/app:/var/www/app \
-p 80:8080 \
--name youtube.api.dev \
-it --rm researchranks/alpine.node:8.5.0 npm start
debug:
docker run \
-v $PWD/app:/var/www/app \
-p 80:3000 \
-p 8080:8080
--name youtube.api.dev \
-it --rm researchranks/alpine.node:8.5.0 /bin/ash

Tag summary

Content type

Image

Digest

Size

58.6 MB

Last updated

over 8 years ago

docker pull researchranks/alpine.node.typescript.api.youtube