Skip to content

Instantly share code, notes, and snippets.

@chrisbarnes2000
Last active July 30, 2022 04:02
Show Gist options
  • Select an option

  • Save chrisbarnes2000/3d1bc192823cbe2bcdc877aac31c2243 to your computer and use it in GitHub Desktop.

Select an option

Save chrisbarnes2000/3d1bc192823cbe2bcdc877aac31c2243 to your computer and use it in GitHub Desktop.
➜ P3-E-Commerce git:(main) ✗ docker-compose up --build
Building backend
Step 1/11 : FROM maven:3.8.5-openjdk-8 AS MAVEN_BUILD_STAGE
---> 3d6a1288d2b9
Step 2/11 : COPY ./ ./
---> Using cache
---> 491b393b7e23
Step 3/11 : ARG DB_PLATFORM=org.hibernate.dialect.H2Dialect
---> Using cache
---> ed037c80ab93
Step 4/11 : ARG DB_URL=jdbc:h2:mem:test;MODE=PostgreSQL
---> Using cache
---> daf824a34418
Step 5/11 : ARG DB_DRIVER=org.h2.Driver
---> Using cache
---> 95ab89b6782a
Step 6/11 : RUN mvn clean package # -Dmaven.test.skip=true
---> Using cache
---> b8226d2377ad
Step 7/11 : FROM openjdk
---> 04bf630c9556
Step 8/11 : copy --from=MAVEN_BUILD_STAGE ./target/e-commerce-1.0.jar /workspace/e-commerce-1.0.jar
---> Using cache
---> 185ca31488af
Step 9/11 : WORKDIR /workspace
---> Using cache
---> ef7a8e5c3fe2
Step 10/11 : EXPOSE 5000
---> Using cache
---> 3e8465f81fd8
Step 11/11 : ENTRYPOINT [ "java", "-jar", "e-commerce-1.0.jar" ]
---> Using cache
---> 3ec66d688d55
Successfully built 3ec66d688d55
Successfully tagged chrisbarnes2000/e-commerce-backend:latest
Building frontend
Step 1/8 : FROM node:18-bullseye-slim AS builder
---> e7a30f09af06
Step 2/8 : WORKDIR /usr/src/app
---> Using cache
---> c25ee0132238
Step 3/8 : ENV PATH /usr/src/app/node_modules/.bin:$PATH
---> Using cache
---> d4f753df7a6b
Step 4/8 : COPY ./frontend /usr/src/app
---> Using cache
---> f3bba4948c46
Step 5/8 : RUN npm ci --silent && npm run build
---> Running in bfce19938126
npm notice
npm notice New patch version of npm available! 8.15.0 -> 8.15.1
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.1>
npm notice Run `npm install -g [email protected]` to update!
npm notice
> [email protected] build
> react-scripts build
Creating an optimized production build...
Compiled with warnings.
src/App.tsx
Line 36:25: Expected '!==' and instead saw '!=' eqeqeq
src/components/cart/Cart.tsx
Line 8:10: 'integerPropType' is defined but never used @typescript-eslint/no-unused-vars
Line 67:7: 'ProductColor' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 73:7: 'ProductSize' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 98:7: 'SalePrice' is assigned a value but never used @typescript-eslint/no-unused-vars
src/components/checkout/Checkout.tsx
Line 22:7: 'products' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 44:11: 'cart' is assigned a value but never used @typescript-eslint/no-unused-vars
Line 44:17: 'setCart' is assigned a value but never used @typescript-eslint/no-unused-vars
src/components/checkout/Review.tsx
Line 7:8: 'Product' is defined but never used @typescript-eslint/no-unused-vars
src/components/dark-mode-switcher/DarkModeSwitcher.tsx
Line 2:10: 'useState' is defined but never used @typescript-eslint/no-unused-vars
Line 5:10: 'createTheme' is defined but never used @typescript-eslint/no-unused-vars
Line 5:23: 'ThemeProvider' is defined but never used @typescript-eslint/no-unused-vars
Line 12:46: Expected '!==' and instead saw '!=' eqeqeq
Line 31:17: Expected '!==' and instead saw '!=' eqeqeq
src/components/display-products/ProductCard.tsx
Line 214:11: 'theme' is assigned a value but never used @typescript-eslint/no-unused-vars
src/components/display-products/ProductDetailView.tsx
Line 16:8: 'Snackbar' is defined but never used @typescript-eslint/no-unused-vars
Line 17:10: 'useState' is defined but never used @typescript-eslint/no-unused-vars
src/components/forgot-password/CheckEmailNotification.tsx
Line 11:10: 'useEffect' is defined but never used @typescript-eslint/no-unused-vars
src/components/navbar/Narbar.tsx
Line 31:7: 'Heading' is assigned a value but never used @typescript-eslint/no-unused-vars
src/components/register/Register.tsx
Line 68:42: Expected '!==' and instead saw '!=' eqeqeq
Line 85:42: Expected '!==' and instead saw '!=' eqeqeq
Line 99:41: Expected '!==' and instead saw '!=' eqeqeq
Line 109:21: Expected '===' and instead saw '==' eqeqeq
src/components/reset-password/PasswordResetSuccess.tsx
Line 2:8: 'Avatar' is defined but never used @typescript-eslint/no-unused-vars
Line 4:8: 'TextField' is defined but never used @typescript-eslint/no-unused-vars
Line 6:8: 'LockOutlinedIcon' is defined but never used @typescript-eslint/no-unused-vars
Line 10:10: 'useState' is defined but never used @typescript-eslint/no-unused-vars
Line 16:11: 'navigate' is assigned a value but never used @typescript-eslint/no-unused-vars
src/components/search-bar/SearchBar.tsx
Line 1:18: 'alpha' is defined but never used @typescript-eslint/no-unused-vars
Line 6:10: 'Button' is defined but never used @typescript-eslint/no-unused-vars
Line 7:8: 'ButtonBase' is defined but never used @typescript-eslint/no-unused-vars
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
File sizes after gzip:
156.01 kB build/static/js/main.2f553de7.js
1.79 kB build/static/js/787.5dcbc3b6.chunk.js
452 B build/static/css/main.f695af9d.css
The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.
The build folder is ready to be deployed.
You may serve it with a static server:
npm install -g serve
serve -s build
Find out more about deployment here:
https://cra.link/deployment
Removing intermediate container bfce19938126
---> 54f58ae20d1c
Step 6/8 : FROM nginx:1.23.1-alpine AS web
---> e46bcc697531
Step 7/8 : COPY --from=builder /usr/src/app/build /usr/share/nginx/html/
---> Using cache
---> d0b9e089bd40
Step 8/8 : EXPOSE 80
---> Using cache
---> ba67592ab8dd
Successfully built ba67592ab8dd
Successfully tagged chrisbarnes2000/e-commerce-frontend:latest
Recreating p3-e-commerce_frontend_1 ... done
Recreating p3-e-commerce_backend_1 ... done
Attaching to p3-e-commerce_frontend_1, p3-e-commerce_backend_1
frontend_1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
frontend_1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
frontend_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
frontend_1 | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
frontend_1 | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
frontend_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
frontend_1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
frontend_1 | /docker-entrypoint.sh: Configuration complete; ready for start up
frontend_1 | 2022/07/30 02:41:01 [notice] 1#1: using the "epoll" event method
frontend_1 | 2022/07/30 02:41:01 [notice] 1#1: nginx/1.23.1
frontend_1 | 2022/07/30 02:41:01 [notice] 1#1: built by gcc 11.2.1 20220219 (Alpine 11.2.1_git20220219)
frontend_1 | 2022/07/30 02:41:01 [notice] 1#1: OS: Linux 5.10.104-linuxkit
frontend_1 | 2022/07/30 02:41:01 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
frontend_1 | 2022/07/30 02:41:01 [notice] 1#1: start worker processes
frontend_1 | 2022/07/30 02:41:01 [notice] 1#1: start worker process 31
frontend_1 | 2022/07/30 02:41:01 [notice] 1#1: start worker process 32
backend_1 |
backend_1 | . ____ _ __ _ _
backend_1 | /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
backend_1 | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
backend_1 | \\/ ___)| |_)| | | | | || (_| | ) ) ) )
backend_1 | ' |____| .__|_| |_|_| |_\__, | / / / /
backend_1 | =========|_|==============|___/=/_/_/_/
backend_1 | :: Spring Boot :: (v2.6.7)
backend_1 |
backend_1 | 2022-07-30 02:41:04.976 INFO 1 --- [ main] com.revature.ECommerceApplication : Starting ECommerceApplication v1.0 using Java 18.0.2 on 14ee57edf2fe with PID 1 (/workspace/e-commerce-1.0.jar started by root in /workspace)
backend_1 | 2022-07-30 02:41:04.982 INFO 1 --- [ main] com.revature.ECommerceApplication : No active profile set, falling back to 1 default profile: "default"
backend_1 | 2022-07-30 02:41:07.776 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
backend_1 | 2022-07-30 02:41:08.022 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 210 ms. Found 3 JPA repository interfaces.
backend_1 | 2022-07-30 02:41:10.590 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 5000 (http)
backend_1 | 2022-07-30 02:41:10.617 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
backend_1 | 2022-07-30 02:41:10.618 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.62]
backend_1 | 2022-07-30 02:41:11.029 INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
backend_1 | 2022-07-30 02:41:11.029 INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 5661 ms
backend_1 | 2022-07-30 02:41:11.988 INFO 1 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
backend_1 | 2022-07-30 02:41:12.300 INFO 1 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.6.8.Final
backend_1 | 2022-07-30 02:41:12.772 INFO 1 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
backend_1 | 2022-07-30 02:41:13.178 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
backend_1 | 2022-07-30 02:41:13.751 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
backend_1 | 2022-07-30 02:41:13.808 INFO 1 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
backend_1 | 2022-07-30 02:41:15.216 INFO 1 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
backend_1 | 2022-07-30 02:41:15.241 INFO 1 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
backend_1 | 2022-07-30 02:41:16.392 WARN 1 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
backend_1 | 2022-07-30 02:41:17.411 INFO 1 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 3 endpoint(s) beneath base path ''
backend_1 | 2022-07-30 02:41:17.536 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 5000 (http) with context path ''
backend_1 | 2022-07-30 02:41:17.594 INFO 1 --- [ main] com.revature.ECommerceApplication : Started ECommerceApplication in 14.467 seconds (JVM running for 16.686)
backend_1 | 2022-07-30 02:41:39.351 INFO 1 --- [nio-5000-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
backend_1 | 2022-07-30 02:41:39.356 INFO 1 --- [nio-5000-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
backend_1 | 2022-07-30 02:41:39.361 INFO 1 --- [nio-5000-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 4 ms
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:41:48 +0000] "GET / HTTP/1.1" 200 768 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:41:48 +0000] "GET /static/css/main.f695af9d.css HTTP/1.1" 200 660 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:41:48 +0000] "GET /static/js/main.2f553de7.js HTTP/1.1" 200 496522 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:41:49 +0000] "GET /static/css/main.f695af9d.css.map HTTP/1.1" 200 1244 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:41:49 +0000] "GET /static/js/main.2f553de7.js.map HTTP/1.1" 200 1913327 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:41:49 +0000] "GET /images/favicon.png HTTP/1.1" 200 32407 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:41:49 +0000] "GET /manifest.json HTTP/1.1" 200 492 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:41:49 +0000] "GET /logo192.png HTTP/1.1" 200 5347 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:42:05 +0000] "GET / HTTP/1.1" 200 768 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:42:05 +0000] "GET /static/js/main.2f553de7.js HTTP/1.1" 200 496522 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:42:05 +0000] "GET /static/css/main.f695af9d.css HTTP/1.1" 200 660 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:42:05 +0000] "GET /static/css/main.f695af9d.css.map HTTP/1.1" 200 1244 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:42:05 +0000] "GET /static/js/main.2f553de7.js.map HTTP/1.1" 200 1913327 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:42:06 +0000] "GET /manifest.json HTTP/1.1" 200 492 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:42:06 +0000] "GET /images/favicon.png HTTP/1.1" 200 32407 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:02:42:06 +0000] "GET /logo192.png HTTP/1.1" 200 5347 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:03:57:14 +0000] "GET / HTTP/1.1" 200 768 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:03:57:14 +0000] "GET /static/js/main.2f553de7.js HTTP/1.1" 200 496522 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:03:57:14 +0000] "GET /static/css/main.f695af9d.css HTTP/1.1" 200 660 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:03:57:15 +0000] "GET /static/css/main.f695af9d.css.map HTTP/1.1" 200 1244 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:03:57:15 +0000] "GET /static/js/main.2f553de7.js.map HTTP/1.1" 200 1913327 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:03:57:16 +0000] "GET /images/favicon.png HTTP/1.1" 200 32407 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:03:57:16 +0000] "GET /manifest.json HTTP/1.1" 200 492 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
frontend_1 | 172.26.0.1 - - [30/Jul/2022:03:57:16 +0000] "GET /logo192.png HTTP/1.1" 200 5347 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment