Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 2.61 KB

README.md

File metadata and controls

81 lines (60 loc) · 2.61 KB

Catalyst - front end

check out the server-side

Overview:

Motivational app for people that are lacking that extra push. Group of close friends post their goals that they want to commit to. Your friends vote for a ridiculous punishment for you if you don’t follow through. You have to ‘check-in’ to prove that you actually doing the work, else get punished!

_____Mobile First

Watch demo:

Screenshots:

sc1 sc2 sc3 sc4 sc5

Team Members & Roles:

Technologies used:

  • React
  • PostgreSQL
  • Redux
  • Express.js
  • JavaScript
  • Node.js
  • CSS
  • Amazon EC2.

Code snippets:

class ProfilePage extends Component{
    async componentDidMount() {
        let { dispatch } = this.props;
        let response = await fetchMe();
        if (response.status === 200) {
            let user = await response.json();
            updateUserInfo({dispatch, user })
        }
    }

    render() {
        let { me, profileUserId, history } = this.props;

        return (
            <div>
                <ProfileIconPart userId={profileUserId} me={me} history={history}/>
                <ProfileGoals userId={profileUserId} me={me}/>
                <ProfileCheckins userId={profileUserId} me={me}/>
            </div>
        )
    }
}

export default connect(
    (state, props) => ({ 
        me: state.user,
        profileUserId: props.profileUserId,
        history: props.history,
    })
)(ProfilePage);