We need to generate secret key for development environment.
mix phoenix.gen.secret
# ednkXywWll1d2svDEpbA39R5kfkc9l96j0+u7A8MgKM+pbwbeDsuYB8MP2WUW1hf
Let's generate User model and controller.
Incluir acá la meta semanal del equipo | |
Subequipo (pinnear a cada miembro del subequipo anteponiendo "@") | |
------------------------------------------------- | |
* Responsabilidad 1 | |
* Responsabilidad 2 | |
* Responsabilidad N |
curl -X POST -H 'Content-Type: application/json' http://localhost:9200/data-obj/data-obj/_search?size=0&pretty -d ' | |
{ | |
"aggs": { | |
"range_agg": { | |
"range": { | |
"field": "age", | |
"ranges": [ | |
{"to": 20}, | |
{"from": 20, "to": 25}, | |
{"from": 25, "to": 30}, |
curl -X POST -H 'Content-Type: application/json' http://localhost:9200/data-obj/data-obj/_search?size=0&pretty -d ' | |
{ | |
"aggs": { | |
"range_agg": { | |
"range": { | |
"field": "age", | |
"ranges": [ | |
{"to": 20}, | |
{"from": 20, "to": 25}, | |
{"from": 25, "to": 30}, |
{ | |
type: 'GET_ISSUES', | |
payload: [{ title: 'Login doesnt work!', author_id: 3 }, { title: 'Weird error on toolbar', author_id: 3 }] | |
} |
import Request from 'superagent'; | |
export function getIssues() { | |
const request = Request | |
.get('http://issues.com/issues') | |
return (dispatch) => { | |
request.end((err, res) => { | |
if (res.ok) | |
dispatch({ | |
type: 'GET_ISSUES', |
export default function(state = null, action) { | |
switch(action.type) { | |
case 'GET_ISSUES': | |
return action.payload; | |
} | |
return state; | |
} |
import {combineReducers} from 'redux'; | |
import IssuesReducer from './issues/issues_reducer'; | |
const rootReducer = combineReducers({ | |
issues: IssuesReducer | |
}); | |
export default rootReducer; |
import {Provider} from 'react-redux'; | |
import {createStore, applyMiddleware} from 'redux'; | |
import thunk from 'redux-thunk'; | |
import allReducers from './reducers/root_reducer'; | |
let createStoreWithMiddleware = applyMiddleware(thunk)(createStore); | |
const RouterComponent = (props) => { | |
const routes = ( |