This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:12.4.0-alpine as build | |
WORKDIR /usr/src/app | |
COPY package.json yarn.lock ./ | |
RUN yarn | |
COPY src ./src | |
COPY public ./public | |
RUN yarn build | |
FROM nginx:1.17.0-alpine | |
COPY --from=build /usr/src/app/build /usr/share/nginx/html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require('mongoose') | |
mongoose.connect('mongodb://localhost:27017/playground', { | |
useNewUrlParser: true, | |
}) | |
const catSchema = mongoose.Schema( | |
{ | |
name: String, | |
age: Number, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path') | |
const spawn = require('cross-spawn') | |
const execSync = require('child_process').execSync | |
const root = path.resolve('project') | |
let command | |
let args = [] | |
try { | |
execSync('yarn -v', { stdio: 'ignore' }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState} from 'react'; | |
import {Pressable, Text, View} from 'react-native'; | |
import {launchImageLibrary} from 'react-native-image-picker'; | |
import RNFetchBlob from 'rn-fetch-blob'; | |
const App = () => { | |
const [selectedAssets, setSelectedAssets] = useState([]); | |
const selectAssets = async () => { | |
const response = await launchImageLibrary({ |
OlderNewer