Skip to content

Talk and share thoughts with anonymous strangers around you for fun

Notifications You must be signed in to change notification settings

karenfann/gossip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gossip

Commands

make build

  • Builds docker image, tagged karenfann/gossip

make run

  • Runs webpack-dev-server on port 8080

make down

  • kills the docker-compose network

Installing a new Node Module

  • 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

If node modules still aren't there in docker

  • enter docker container with docker exec -it $(docker ps -lq) sh
  • run npm install

Store

{
    User: {
        location: {
            latitude: null,
            longitude: null,
        },
        _internal: {
            loading: false,
            error: false
        },
        text: null
    },
    Gossip: {
        gossips: [],
        _internal: {
            loading: false,
            error: false
        }
    }
}

Actions

Fetch User's Location

import actions from 'actions'

const { userActions } = actions
dispatch(userActions.fetchLocation())

Create a new Gossip (should be done after user's location is fetched)

import actions from 'actions'

const { gossipActions } = actions
dispatch(gossipActions.createGossip(text))

Fetch Gossips within range

import actions from 'actions'

const { gossipActions } = actions
dispatch(gossipActions.fetchGossip(radius))

About

Talk and share thoughts with anonymous strangers around you for fun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •