Skip to content

Instantly share code, notes, and snippets.

View lopezjurip's full-sized avatar
🎯
Focusing

Patricio López Juri lopezjurip

🎯
Focusing
View GitHub Profile
'use strict'
import { AppRegistry } from 'react-native'
import App from './build'
AppRegistry.registerComponent('ReactNativeTS', () => App)
// src/index.ts
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
interface Props {
{
"compilerOptions": {
"target": "es2015",
"module": "es2015",
"jsx": "react",
"outDir": "build",
"rootDir": "src",
"allowSyntheticDefaultImports": true,
"noImplicitAny": true,
"experimentalDecorators": true,
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noImplicitAny": false,
"sourceMap": false
},
"exclude": [
"node_modules"
]
# config/database.yml
# ...
production:
<<: *default
host: postgresql
database: railsapi_production
username: railsapi
password: <%= ENV['POSTGRES_PASSWORD'] %>
FROM ruby:2.3
# Install dependencies
RUN apt-get update -qq
RUN apt-get install -y build-essential libpq-dev nodejs
# Prepare app
RUN mkdir /app
WORKDIR /app
COPY Gemfile /app/Gemfile
# Dockerfile
FROM rails:onbuild
EXPOSE 3000
{
"name": "express-ts",
"dependencies": {},
"globalDependencies": {
"node": "registry:env/node#6.0.0+20160813135048"
}
}
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"rootDir": "src",
"outDir": "build",
"noImplicitAny": true,
"preserveConstEnums": true,
"allowSyntheticDefaultImports": true,
"sourceMap": false
# docker-compose.yml
version: '2'
services:
loadbalancer:
image: dockercloud/haproxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
links: