Skip to content

Commit

Permalink
Merge pull request #67 from samuel-ping/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
samuel-ping authored Sep 7, 2020
2 parents 03b69ee + 764cc18 commit f724970
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ I migrated the Express.js backend to AWS Lambda, and migrated the website from a

#### Stack used: React.js, AWS Lambda - Node.js, hosted on AWS Amplify.

##### Other technologies used: AWS API Gateway.

## Food Mood v2.5

To introduce myself to AWS S3, I deployed this app in a public AWS S3 bucket, and delivered it via AWS Cloudfront for a day.
Expand All @@ -34,6 +36,8 @@ After the challenge ended, I decided to continue improving this project. I rebui

#### Stack used: React.js, Express.js, Node.js, hosted on AWS EC2 using Nginx.

##### Other technologies used: AWS CodePipeline & CodeDeploy.

## Food Mood v1

#### Browse the repo: https://github.com/samuel-ping/Old-Food-Mood
Expand Down
7 changes: 6 additions & 1 deletion client/src/pages/LandingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ class LandingPage extends Component {
this.props.onDataRetrieval(returnJSON.data);
})
.catch((error) => {
toast.error(error.message, toastConfig);
console.log(error.message);
toast.error(
"There was an error parsing your photo. Be sure to use either a JPG or PNG image of an actual person/people!",
toastConfig
);
this.setState({ loadingResults: false });
});
});
Expand All @@ -86,6 +90,7 @@ class LandingPage extends Component {
reader.onerror = function (error) {
const theError = ("Error in converting file to base64: ", error);
toast.error(theError, toastConfig);
this.setState({ loadingResults: false });
};
}

Expand Down

0 comments on commit f724970

Please sign in to comment.