make build
- Builds docker image, tagged
karenfann/gossip
make run
- Runs webpack-dev-server on port 8080
make down
- kills the docker-compose network
- install the module locally
npm i -S <module>
- run
make down
to stop docker - run
make build
to rebuild the docker image with new node module - run
make run
- enter docker container with
docker exec -it $(docker ps -lq) sh
- run
npm install
{
User: {
location: {
latitude: null,
longitude: null,
},
_internal: {
loading: false,
error: false
},
text: null
},
Gossip: {
gossips: [],
_internal: {
loading: false,
error: false
}
}
}
import actions from 'actions'
const { userActions } = actions
dispatch(userActions.fetchLocation())
import actions from 'actions'
const { gossipActions } = actions
dispatch(gossipActions.createGossip(text))
import actions from 'actions'
const { gossipActions } = actions
dispatch(gossipActions.fetchGossip(radius))