Talk:
Intro to Docker + Node.js
This talk will intro you to the concept of containerization and the Docker ecosystem as a whole as well as how to Docker can be used to simplify your Node.js development workflow.
Speaker:
| # base image | |
| FROM centos:6 | |
| # install epel | |
| RUN rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 \ | |
| && yum install -y epel-release | |
| # install python | |
| RUN yum install -y \ | |
| git \ |
Talk:
Intro to Docker + Node.js
This talk will intro you to the concept of containerization and the Docker ecosystem as a whole as well as how to Docker can be used to simplify your Node.js development workflow.
Speaker:
| const fetch = require('node-fetch'); | |
| const url = 'http://www.omdbapi.com/?t=star+wars&y=&plot=short&r=json'; | |
| async function getData() { | |
| let content | |
| try { | |
| const response = await fetch(url); | |
| content = await response.json(); | |
| } catch (e) { | |
| console.log(e); |
| from datetime import datetime | |
| from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
| from sqlalchemy.orm import relationship | |
| from sqlalchemy.ext.declarative import declared_attr | |
| from flask_security import current_user | |
| class AuditMixin(object): | |
| created_at = Column(DateTime, default=datetime.now) | |
| updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |
By the way, I'm available for tutoring and code review :)
new Promise?.then callback yet?](https://gist.github.com/joepie91/4c3a10629a4263a522e3bc4839a28c83#6-butThis Gist: http://is.gd/dokkudjango
DigitalOcean: https://www.digitalocean.com/
Dokku: https://github.com/progrium/dokku
Dokku-Postgres: https://github.com/Kloadut/dokku-pg-plugin