docker-compose up
Credentials :
| stat -f "%OLp" ./ |
| // Faire un create-react-app | |
| // Installer redux et react-redux : npm i -S redux react-redux | |
| // Copier tout le code dans le index.js de votre create-react-app | |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import { combineReducers, createStore } from 'redux'; | |
| import {Provider, connect} from 'react-redux'; | |
| import './index.css'; |
| - Faire 3 boutons : 1 rouge, 1 bleu, 1 vert | |
| - Faire 3 textes avec la couleur grise : 1 avec l'id p1, 1 avec l'id p2, 1 avec l'id p3, | |
| - Quand je clique sur le bouton rouge, | |
| - si le texte p1 est gris | |
| - le texte devient rouge | |
| - sinon | |
| - le texte p1 devient gris | |
| - Quand je clique sur le bouton bleu, |
| git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git | |
| git fetch upstream | |
| git merge upstream/master |
| const _pipe = (f, g) => (...args) => g(f(...args)) | |
| export const pipe = (...fcts) => fcts.reduce(_pipe) |
| version: '3.1' | |
| services : | |
| db: | |
| image: postgres:10-alpine | |
| ports: | |
| - "5432:5432" | |
| environment: | |
| POSTGRES_USER: user1 | |
| POSTGRES_PASSWORD: changeme | |
| POSTGRES_DB: tododb |
| Object.entries(obj).map(([key, value], i) => | |
| <p key={i}> {key} : <strong>{value}</strong></p> | |
| ) |
| docker stop $(docker ps -a -q) | |
| docker rm $(docker ps -a -q) |
| {"lastUpload":"2018-09-29T12:34:30.975Z","extensionVersion":"v3.1.2"} |