Skip to content

Commit 8c1a673

Browse files
author
loaizamateo
committed
Changes for the task #2 of CloudX: AWS Practitioner for JS #1 course
- List products updated. - Title of app changed
1 parent ae039bb commit 8c1a673

File tree

6 files changed

+27
-14
lines changed

6 files changed

+27
-14
lines changed

.serverless_plugins/serverless-single-page-app-plugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class ServerlessPlugin {
4545
command = `${command} --profile ${this.serverless.variables.service.provider.profile}`;
4646
}
4747
const result = spawnSync(command, args, { shell: true });
48+
4849
const stdout = result.stdout.toString();
4950
const sterr = result.stderr.toString();
5051
if (stdout) {

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
1+
## URLs
2+
3+
S3-website: http://shop-mlr-app.s3-website-us-east-1.amazonaws.com
4+
CloudFront URL: d3h4jyt2urafba.cloudfront.net
25

36
## Available Scripts
47

@@ -37,9 +40,3 @@ If you aren’t satisfied with the build tool and configuration choices, you can
3740
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
3841

3942
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
40-
41-
## Learn More
42-
43-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
44-
45-
To learn React, check out the [React documentation](https://reactjs.org/).

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"react-redux": "^7.2.0",
4343
"react-router-dom": "^5.2.0",
4444
"react-scripts": "3.4.1",
45-
"serverless": "^2.29.0",
46-
"serverless-finch": "^2.6.0",
45+
"serverless": "^3.19.0",
46+
"serverless-finch": "^4.0.0",
4747
"typescript": "~4.3.5",
4848
"yup": "^0.29.1"
4949
},

serverless.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
service: node-in-aws-web
1+
service: shop-mlr-app
22

3-
frameworkVersion: '2'
3+
frameworkVersion: '3'
44

55
provider:
66
name: aws
77
runtime: nodejs12.x
88
# setup profile for AWS CLI.
9-
# profile: node-aws
9+
profile: admin
1010

1111
plugins:
1212
- serverless-finch
@@ -17,8 +17,9 @@ plugins:
1717

1818
custom:
1919
client:
20-
bucketName: node-in-aws-web-bucket
20+
bucketName: shop-mlr-app
2121
distributionFolder: build
22+
indexDocument: index.html
2223
s3BucketName: ${self:custom.client.bucketName}
2324

2425
## Serverless-single-page-app-plugin configuration:

src/components/MainLayout/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function Header() {
4646
<AppBar position="relative">
4747
<Toolbar>
4848
<Typography variant="h6" className={classes.title}>
49-
<Link className={classes.homeLink} to="/">My Store!</Link>
49+
<Link className={classes.homeLink} to="/">My EPAM Store!</Link>
5050
</Typography>
5151

5252
{auth && (

src/components/pages/PageProducts/components/productList.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
[
2+
{
3+
"count": 3,
4+
"description": "Short Product Description1",
5+
"id": "7567ec4b-b13c-48c5-9d45-fc73c48a80aa",
6+
"price": 2.2,
7+
"title": "ProductUpdated"
8+
},
9+
{
10+
"count": 2,
11+
"description": "Short Product Description2",
12+
"id": "7563ec4b-b13c-48c5-9d45-fc71c48a80aa",
13+
"price": 2,
14+
"title": "ProductUpdated2"
15+
},
216
{
317
"count": 4,
418
"description": "Short Product Description1",

0 commit comments

Comments
 (0)