박민정

[feat] For deploy...

Showing 38 changed files with 148 additions and 53 deletions
1 -node_modules
2 -dev.js
...\ No newline at end of file ...\ No newline at end of file
1 +node_modules
...\ No newline at end of file ...\ No newline at end of file
......
1 -node_modules
2 -dev.js
...\ No newline at end of file ...\ No newline at end of file
1 +node_modules
...\ No newline at end of file ...\ No newline at end of file
......
1 +web: npm start
...\ No newline at end of file ...\ No newline at end of file
1 -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 -
3 -# dependencies
4 -/node_modules
5 -/.pnp
6 -.pnp.js
7 -
8 -# testing
9 -/coverage
10 -
11 -# production
12 -/build
13 -
14 -# misc
15 -.DS_Store
16 -.env.local
17 -.env.development.local
18 -.env.test.local
19 -.env.production.local
20 -
21 -npm-debug.log*
22 -yarn-debug.log*
23 -yarn-error.log*
1 +{
2 + "files": {
3 + "main.css": "/static/css/main.c9112ef1.chunk.css",
4 + "main.js": "/static/js/main.30dbcb82.chunk.js",
5 + "main.js.map": "/static/js/main.30dbcb82.chunk.js.map",
6 + "runtime~main.js": "/static/js/runtime~main.a8a9905a.js",
7 + "runtime~main.js.map": "/static/js/runtime~main.a8a9905a.js.map",
8 + "static/css/2.b6ac9e22.chunk.css": "/static/css/2.b6ac9e22.chunk.css",
9 + "static/js/2.4d47edc8.chunk.js": "/static/js/2.4d47edc8.chunk.js",
10 + "static/js/2.4d47edc8.chunk.js.map": "/static/js/2.4d47edc8.chunk.js.map",
11 + "index.html": "/index.html",
12 + "precache-manifest.16488c9b14dd1aef91bfa2340fd902da.js": "/precache-manifest.16488c9b14dd1aef91bfa2340fd902da.js",
13 + "service-worker.js": "/service-worker.js",
14 + "static/css/2.b6ac9e22.chunk.css.map": "/static/css/2.b6ac9e22.chunk.css.map",
15 + "static/css/main.c9112ef1.chunk.css.map": "/static/css/main.c9112ef1.chunk.css.map"
16 + }
17 +}
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
1 +<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous"/><title>약 배달 서비스 : 약사</title><link href="/static/css/2.b6ac9e22.chunk.css" rel="stylesheet"><link href="/static/css/main.c9112ef1.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={1:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="/static/js/2.4d47edc8.chunk.js"></script><script src="/static/js/main.30dbcb82.chunk.js"></script></body></html>
...\ No newline at end of file ...\ No newline at end of file
1 +{
2 + "short_name": "React App",
3 + "name": "Create React App Sample",
4 + "icons": [
5 + {
6 + "src": "favicon.ico",
7 + "sizes": "64x64 32x32 24x24 16x16",
8 + "type": "image/x-icon"
9 + }
10 + ],
11 + "start_url": ".",
12 + "display": "standalone",
13 + "theme_color": "#000000",
14 + "background_color": "#ffffff"
15 +}
1 +self.__precacheManifest = (self.__precacheManifest || []).concat([
2 + {
3 + "revision": "d9dcd4703f5c7de8e5597152c1420acf",
4 + "url": "/index.html"
5 + },
6 + {
7 + "revision": "816cfabf4853ead8d600",
8 + "url": "/static/css/2.b6ac9e22.chunk.css"
9 + },
10 + {
11 + "revision": "176d56469d43bf1341fe",
12 + "url": "/static/css/main.c9112ef1.chunk.css"
13 + },
14 + {
15 + "revision": "816cfabf4853ead8d600",
16 + "url": "/static/js/2.4d47edc8.chunk.js"
17 + },
18 + {
19 + "revision": "176d56469d43bf1341fe",
20 + "url": "/static/js/main.30dbcb82.chunk.js"
21 + },
22 + {
23 + "revision": "42ac5946195a7306e2a5",
24 + "url": "/static/js/runtime~main.a8a9905a.js"
25 + }
26 +]);
...\ No newline at end of file ...\ No newline at end of file
1 +/**
2 + * Welcome to your Workbox-powered service worker!
3 + *
4 + * You'll need to register this file in your web app and you should
5 + * disable HTTP caching for this file too.
6 + * See https://goo.gl/nhQhGp
7 + *
8 + * The rest of the code is auto-generated. Please don't update this file
9 + * directly; instead, make changes to your Workbox build configuration
10 + * and re-run your build process.
11 + * See https://goo.gl/2aRDsh
12 + */
13 +
14 +importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
15 +
16 +importScripts(
17 + "/precache-manifest.16488c9b14dd1aef91bfa2340fd902da.js"
18 +);
19 +
20 +self.addEventListener('message', (event) => {
21 + if (event.data && event.data.type === 'SKIP_WAITING') {
22 + self.skipWaiting();
23 + }
24 +});
25 +
26 +workbox.core.clientsClaim();
27 +
28 +/**
29 + * The workboxSW.precacheAndRoute() method efficiently caches and responds to
30 + * requests for URLs in the manifest.
31 + * See https://goo.gl/S9QRab
32 + */
33 +self.__precacheManifest = [].concat(self.__precacheManifest || []);
34 +workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
35 +
36 +workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {
37 +
38 + blacklist: [/^\/_/,/\/[^/]+\.[^/]+$/],
39 +});
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
1 +@font-face{font-family:BRBA_B;src:url(https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_seven@1.2/BRBA_B.woff) format("woff");font-weight:400;font-style:normal}@font-face{font-family:InfinitySans-RegularA1;src:url(https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/InfinitySans-RegularA1.woff) format("woff");font-weight:400;font-style:normal}@font-face{font-family:GongGothicMedium;src:url(https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/GongGothicMedium.woff) format("woff");font-weight:400;font-style:normal}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:14px;line-height:1.5;color:#24292e;background-color:#fff}.app{flex-direction:column;display:flex;justify-content:center;align-items:center;height:100vh}input.error{border-color:red}.input-feedback{color:red;height:5px;margin-top:-12px}table{font-family:arial,sans-serif;border-collapse:collapse;width:100%}td,th{border:1px solid #ddd;text-align:left;padding:8px}tr:nth-child(2n){background-color:#ddd}h1{font-family:GongGothicMedium}h3{font-family:InfinitySans-RegularA1}.menu{padding:0 20px;border-bottom:1px solid #e8e8e8;overflow:auto;box-shadow:0 0 30px #f3f1f1;background-color:#fff}.menu__logo{width:150px;float:left}.menu__logo a{display:inline-block;font-size:20px;padding:19px 20px}.menu__container .ant-menu-item{padding:0 5px}.menu__container .ant-menu-submenu-title{padding:10px 20px}.menu__container .ant-menu-item a,.menu__container .ant-menu-submenu-title a{padding:10px 15px}.menu__container .ant-menu-horizontal{border-bottom:none}.menu__container .menu_left{float:left}.menu__container .menu_rigth{float:right}.menu__mobile-button{float:right;height:32px;padding:6px;margin-top:8px;display:none!important;background:#d3d3d3}.menu_drawer .ant-drawer-body{padding:0!important}.menu_drawer .ant-drawer-header{padding:14px 24px!important}@media (max-width:767px){.menu__mobile-button{display:inline-block!important}.menu_left,.menu_rigth{display:none}.menu__logo a{margin-left:-20px}.menu__container .ant-menu-item,.menu__container .ant-menu-submenu-title{padding:1px 20px}.menu__logo a{padding:10px 20px}}#test{position:relative}#alert,#test{width:300px;height:200px;border:1px solid #d3d3d3;border-radius:1em;display:flex}#alert{justify-content:center;align-items:center}#test:hover{-webkit-animation:del .2s forwards;animation:del .2s forwards}@-webkit-keyframes del{to{-webkit-filter:brightness(50%);filter:brightness(50%)}}@keyframes del{to{-webkit-filter:brightness(50%);filter:brightness(50%)}}#alert{position:relative;bottom:200px;opacity:0}#alert:hover{background-color:#000;color:#fff;-webkit-animation:fadeInUP 1s forwards;animation:fadeInUP 1s forwards}@-webkit-keyframes fadeInUP{to{opacity:.5}}@keyframes fadeInUP{to{opacity:.5}}
2 +/*# sourceMappingURL=main.c9112ef1.chunk.css.map */
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"sources":["index.css","Navbar.css","FileUpload.css"],"names":[],"mappings":"AACA,WACE,kBAAqB,CACrB,iGACgB,CAChB,eAAmB,CACnB,iBACF,CAEA,WACE,kCAAqC,CACrC,iHACgB,CAChB,eAAmB,CACnB,iBACF,CAEA,WACE,4BAA+B,CAC/B,2GACgB,CAChB,eAAmB,CACnB,iBACF,CAEA,KACE,QAAS,CACT,mIAEY,CACZ,kCAAmC,CACnC,iCACF,CAEA,KACE,uEAEF,CAEA,KACE,iIACsE,CACtE,cAAe,CACf,eAAgB,CAChB,aAAc,CACd,qBACF,CAEA,KACE,qBAAsB,CACtB,YAAa,CACb,sBAAuB,CACvB,kBAAmB,CACnB,YACF,CAEA,YACE,gBACF,CAEA,gBACE,SAAU,CACV,UAAW,CACX,gBACF,CAEA,MACE,4BAA8B,CAC9B,wBAAyB,CACzB,UACF,CAEA,MAEE,qBAAyB,CACzB,eAAgB,CAChB,WACF,CAEA,iBACE,qBACF,CAEA,GACE,4BACF,CAEA,GACE,kCACF,CCvFA,MACE,cAAe,CACf,+BAAgC,CAChC,aAAc,CACd,2BAA4B,CAC5B,qBACF,CAEA,YACE,WAAY,CACZ,UACF,CAEA,cACE,oBAAqB,CACrB,cAAe,CACf,iBACF,CAEA,gCACE,aACF,CAEA,yCACE,iBACF,CAEA,6EAEE,iBACF,CAEA,sCACE,kBACF,CAEA,4BACE,UACF,CAEA,6BACE,WACF,CAEA,qBACE,WAAY,CACZ,WAAY,CACZ,WAAY,CACZ,cAAe,CACf,sBAAwB,CACxB,kBACF,CAEA,8BACE,mBACF,CAGA,gCACE,2BACF,CAEA,yBACE,qBACE,8BACF,CAEA,uBAEE,YACF,CAEA,cACE,iBACF,CAEA,yEAEE,gBACF,CAEA,cACE,iBACF,CACF,CCtFA,MAME,iBACF,CACA,aAPE,WAAY,CACZ,YAAa,CACb,wBAA2B,CAC3B,iBAAkB,CAClB,YAWF,CARA,OAME,sBAAuB,CACvB,kBACF,CAEA,YACE,kCAA4B,CAA5B,0BACF,CAEA,uBACE,GACE,8BAAuB,CAAvB,sBACF,CACF,CAJA,eACE,GACE,8BAAuB,CAAvB,sBACF,CACF,CAEA,OACE,iBAAkB,CAClB,YAAa,CACb,SACF,CAEA,aACE,qBAAuB,CACvB,UAAY,CACZ,sCAA+B,CAA/B,8BACF,CAEA,4BACE,GACE,UACF,CACF,CAJA,oBACE,GACE,UACF,CACF","file":"main.c9112ef1.chunk.css","sourcesContent":["@import \"~react-image-gallery/styles/css/image-gallery.css\";\r\n@font-face {\r\n font-family: \"BRBA_B\";\r\n src: url(\"https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_seven@1.2/BRBA_B.woff\")\r\n format(\"woff\");\r\n font-weight: normal;\r\n font-style: normal;\r\n}\r\n\r\n@font-face {\r\n font-family: \"InfinitySans-RegularA1\";\r\n src: url(\"https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/InfinitySans-RegularA1.woff\")\r\n format(\"woff\");\r\n font-weight: normal;\r\n font-style: normal;\r\n}\r\n\r\n@font-face {\r\n font-family: \"GongGothicMedium\";\r\n src: url(\"https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/GongGothicMedium.woff\")\r\n format(\"woff\");\r\n font-weight: normal;\r\n font-style: normal;\r\n}\r\n\r\nbody {\r\n margin: 0;\r\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\",\r\n \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\r\n sans-serif;\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\ncode {\r\n font-family: source-code-pro, Menlo, Monaco, Consolas, \"Courier New\",\r\n monospace;\r\n}\r\n\r\nbody {\r\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial,\r\n sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\r\n font-size: 14px;\r\n line-height: 1.5;\r\n color: #24292e;\r\n background-color: #fff;\r\n}\r\n\r\n.app {\r\n flex-direction: column;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100vh;\r\n}\r\n\r\ninput.error {\r\n border-color: red;\r\n}\r\n\r\n.input-feedback {\r\n color: red;\r\n height: 5px;\r\n margin-top: -12px;\r\n}\r\n\r\ntable {\r\n font-family: arial, sans-serif;\r\n border-collapse: collapse;\r\n width: 100%;\r\n}\r\n\r\ntd,\r\nth {\r\n border: 1px solid #dddddd;\r\n text-align: left;\r\n padding: 8px;\r\n}\r\n\r\ntr:nth-child(even) {\r\n background-color: #dddddd;\r\n}\r\n\r\nh1 {\r\n font-family: \"GongGothicMedium\";\r\n}\r\n\r\nh3 {\r\n font-family: \"InfinitySans-RegularA1\";\r\n}\r\n","@import \"~antd/dist/antd.css\";\r\n\r\n.menu {\r\n padding: 0 20px;\r\n border-bottom: solid 1px #e8e8e8;\r\n overflow: auto;\r\n box-shadow: 0 0 30px #f3f1f1;\r\n background-color: white;\r\n}\r\n\r\n.menu__logo {\r\n width: 150px;\r\n float: left;\r\n}\r\n\r\n.menu__logo a {\r\n display: inline-block;\r\n font-size: 20px;\r\n padding: 19px 20px;\r\n}\r\n\r\n.menu__container .ant-menu-item {\r\n padding: 0px 5px;\r\n}\r\n\r\n.menu__container .ant-menu-submenu-title {\r\n padding: 10px 20px;\r\n}\r\n\r\n.menu__container .ant-menu-item a,\r\n.menu__container .ant-menu-submenu-title a {\r\n padding: 10px 15px;\r\n}\r\n\r\n.menu__container .ant-menu-horizontal {\r\n border-bottom: none;\r\n}\r\n\r\n.menu__container .menu_left {\r\n float: left;\r\n}\r\n\r\n.menu__container .menu_rigth {\r\n float: right;\r\n}\r\n\r\n.menu__mobile-button {\r\n float: right;\r\n height: 32px;\r\n padding: 6px;\r\n margin-top: 8px;\r\n display: none !important; /* use of important to overwrite ant-btn */\r\n background: lightgray;\r\n}\r\n\r\n.menu_drawer .ant-drawer-body {\r\n padding: 0 !important;\r\n}\r\n\r\n/* align header of Drawer with header of page */\r\n.menu_drawer .ant-drawer-header {\r\n padding: 14px 24px !important;\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .menu__mobile-button {\r\n display: inline-block !important;\r\n }\r\n\r\n .menu_left,\r\n .menu_rigth {\r\n display: none;\r\n }\r\n\r\n .menu__logo a {\r\n margin-left: -20px;\r\n }\r\n\r\n .menu__container .ant-menu-item,\r\n .menu__container .ant-menu-submenu-title {\r\n padding: 1px 20px;\r\n }\r\n\r\n .menu__logo a {\r\n padding: 10px 20px;\r\n }\r\n}\r\n","#test {\r\n width: 300px;\r\n height: 200px;\r\n border: 1px solid lightgray;\r\n border-radius: 1em;\r\n display: flex;\r\n position: relative;\r\n}\r\n#alert {\r\n width: 300px;\r\n height: 200px;\r\n border: 1px solid lightgray;\r\n border-radius: 1em;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n#test:hover {\r\n animation: del 0.2s forwards;\r\n}\r\n\r\n@keyframes del {\r\n to {\r\n filter: brightness(50%);\r\n }\r\n}\r\n\r\n#alert {\r\n position: relative;\r\n bottom: 200px;\r\n opacity: 0;\r\n}\r\n\r\n#alert:hover {\r\n background-color: black;\r\n color: white;\r\n animation: fadeInUP 1s forwards;\r\n}\r\n\r\n@keyframes fadeInUP {\r\n to {\r\n opacity: 0.5;\r\n }\r\n}\r\n"]}
...\ No newline at end of file ...\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 +!function(e){function r(r){for(var n,f,i=r[0],l=r[1],a=r[2],c=0,s=[];c<i.length;c++)f=i[c],o[f]&&s.push(o[f][0]),o[f]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var l=t[i];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},o={1:0},u=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/";var i=window.webpackJsonp=window.webpackJsonp||[],l=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var p=l;t()}([]);
2 +//# sourceMappingURL=runtime~main.a8a9905a.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","1","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,EAAA,GAKApB,EAAA,CACAqB,EAAA,GAGAZ,EAAA,GAGA,SAAAS,EAAA1B,GAGA,GAAA4B,EAAA5B,GACA,OAAA4B,EAAA5B,GAAA8B,QAGA,IAAAC,EAAAH,EAAA5B,GAAA,CACAK,EAAAL,EACAgC,GAAA,EACAF,QAAA,IAUA,OANAhB,EAAAd,GAAAa,KAAAkB,EAAAD,QAAAC,IAAAD,QAAAJ,GAGAK,EAAAC,GAAA,EAGAD,EAAAD,QAKAJ,EAAAO,EAAAnB,EAGAY,EAAAQ,EAAAN,EAGAF,EAAAS,EAAA,SAAAL,EAAAM,EAAAC,GACAX,EAAAY,EAAAR,EAAAM,IACA1B,OAAA6B,eAAAT,EAAAM,EAAA,CAA0CI,YAAA,EAAAC,IAAAJ,KAK1CX,EAAAgB,EAAA,SAAAZ,GACA,qBAAAa,eAAAC,aACAlC,OAAA6B,eAAAT,EAAAa,OAAAC,YAAA,CAAwDC,MAAA,WAExDnC,OAAA6B,eAAAT,EAAA,cAAiDe,OAAA,KAQjDnB,EAAAoB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAnB,EAAAmB,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAAvC,OAAAwC,OAAA,MAGA,GAFAxB,EAAAgB,EAAAO,GACAvC,OAAA6B,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAnB,EAAAS,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIAvB,EAAA2B,EAAA,SAAAtB,GACA,IAAAM,EAAAN,KAAAiB,WACA,WAA2B,OAAAjB,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAL,EAAAS,EAAAE,EAAA,IAAAA,GACAA,GAIAX,EAAAY,EAAA,SAAAgB,EAAAC,GAAsD,OAAA7C,OAAAC,UAAAC,eAAAC,KAAAyC,EAAAC,IAGtD7B,EAAA8B,EAAA,IAEA,IAAAC,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAhD,KAAA2C,KAAAK,GACAA,EAAAhD,KAAAX,EACA2D,IAAAG,QACA,QAAAvD,EAAA,EAAgBA,EAAAoD,EAAAlD,OAAuBF,IAAAP,EAAA2D,EAAApD,IACvC,IAAAU,EAAA4C,EAIAxC","file":"static/js/runtime~main.a8a9905a.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t1: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
...\ No newline at end of file ...\ No newline at end of file
...@@ -5520,8 +5520,7 @@ ...@@ -5520,8 +5520,7 @@
5520 "eventemitter3": { 5520 "eventemitter3": {
5521 "version": "4.0.0", 5521 "version": "4.0.0",
5522 "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.0.tgz", 5522 "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.0.tgz",
5523 - "integrity": "sha512-qerSRB0p+UDEssxTtm6EDKcE7W4OaoisfIMl4CngyEhjpYglocpNg6UEqCvemdGhosAsg4sO2dXJOdyBifPGCg==", 5523 + "integrity": "sha512-qerSRB0p+UDEssxTtm6EDKcE7W4OaoisfIMl4CngyEhjpYglocpNg6UEqCvemdGhosAsg4sO2dXJOdyBifPGCg=="
5524 - "dev": true
5525 }, 5524 },
5526 "eventlistener": { 5525 "eventlistener": {
5527 "version": "0.0.1", 5526 "version": "0.0.1",
...@@ -14468,6 +14467,7 @@ ...@@ -14468,6 +14467,7 @@
14468 "del": "^3.0.0", 14467 "del": "^3.0.0",
14469 "express": "^4.16.2", 14468 "express": "^4.16.2",
14470 "html-entities": "^1.2.0", 14469 "html-entities": "^1.2.0",
14470 + "http-proxy-middleware": "^0.19.1",
14471 "import-local": "^2.0.0", 14471 "import-local": "^2.0.0",
14472 "internal-ip": "^4.2.0", 14472 "internal-ip": "^4.2.0",
14473 "ip": "^1.1.5", 14473 "ip": "^1.1.5",
...@@ -14546,6 +14546,27 @@ ...@@ -14546,6 +14546,27 @@
14546 "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", 14546 "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz",
14547 "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" 14547 "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w=="
14548 }, 14548 },
14549 + "http-proxy": {
14550 + "version": "1.18.1",
14551 + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz",
14552 + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==",
14553 + "requires": {
14554 + "eventemitter3": "^4.0.0",
14555 + "follow-redirects": "^1.0.0",
14556 + "requires-port": "^1.0.0"
14557 + }
14558 + },
14559 + "http-proxy-middleware": {
14560 + "version": "0.19.2",
14561 + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.2.tgz",
14562 + "integrity": "sha512-aYk1rTKqLTus23X3L96LGNCGNgWpG4cG0XoZIT1GUPhhulEHX/QalnO6Vbo+WmKWi4AL2IidjuC0wZtbpg0yhQ==",
14563 + "requires": {
14564 + "http-proxy": "^1.18.1",
14565 + "is-glob": "^4.0.0",
14566 + "lodash": "^4.17.11",
14567 + "micromatch": "^3.1.10"
14568 + }
14569 + },
14549 "is-fullwidth-code-point": { 14570 "is-fullwidth-code-point": {
14550 "version": "1.0.0", 14571 "version": "1.0.0",
14551 "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 14572 "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
......
1 //SERVER ROUTES 1 //SERVER ROUTES
2 -export const USER_SERVER = '/api/users'; 2 +export const USER_SERVER = '3.209.242.35/api/users';
......
...@@ -3,17 +3,16 @@ ...@@ -3,17 +3,16 @@
3 "version": "1.0.0", 3 "version": "1.0.0",
4 "description": "react boiler plate", 4 "description": "react boiler plate",
5 "main": "index.js", 5 "main": "index.js",
6 - "engine": { 6 + "engines": {
7 - "node": "10.16.0", 7 + "node": "14.15.4",
8 - "npm": "6.9.0" 8 + "npm": "6.14.10"
9 }, 9 },
10 "scripts": { 10 "scripts": {
11 "start": "node server/index.js", 11 "start": "node server/index.js",
12 - "backend": "nodemon server/index.js", 12 + "build" : "cd client && npm install && npm run build",
13 - "frontend": "npm run front --prefix client", 13 + "heroku-postbuild": "npm run build"
14 - "dev": "concurrently \"npm run backend\" \"npm run start --prefix client\""
15 }, 14 },
16 - "author": "John ahn", 15 + "author": "mindyeoi",
17 "license": "ISC", 16 "license": "ISC",
18 "dependencies": { 17 "dependencies": {
19 "async": "^3.1.0", 18 "async": "^3.1.0",
......
1 -dev.js
...\ No newline at end of file ...\ No newline at end of file
1 +module.exports = {
2 + mongoURI: "mongodb+srv://mindyeoi:aaa111@boilerplate.djq4a.mongodb.net/myFirstDatabase?retryWrites=true&w=majority"
3 + };
...\ No newline at end of file ...\ No newline at end of file
...@@ -27,26 +27,19 @@ app.use(cookieParser()); ...@@ -27,26 +27,19 @@ app.use(cookieParser());
27 27
28 app.use('/api/users', require('./routes/users')); 28 app.use('/api/users', require('./routes/users'));
29 app.use('/api/product', require('./routes/product')); 29 app.use('/api/product', require('./routes/product'));
30 +app.use('/uploads', express.static('uploads'));
30 31
32 +const port = process.env.PORT || 5000
31 33
32 -//use this to show the image you have in node js server to client (react js) 34 +app.listen(port, () => {
33 -//https://stackoverflow.com/questions/48914987/send-image-path-from-node-js-express-server-to-react-client 35 + console.log(`Server Running at ${port}`)
34 -app.use('/uploads', express.static('uploads')); 36 +});
35 37
36 -// Serve static assets if in production
37 -if (process.env.NODE_ENV === "production") {
38 38
39 // Set static folder 39 // Set static folder
40 - app.use(express.static("client/build")); 40 + app.use(express.static(path.join("client/build")));
41 41
42 // index.html for all page routes 42 // index.html for all page routes
43 - app.get("*", (req, res) => { 43 + app.get("*", (req, res) => {
44 - res.sendFile(path.resolve(__dirname, "../client", "build", "index.html")); 44 + res.sendFile(path.join(__dirname+ '/../client/build/index.html'));
45 }); 45 });
46 -}
47 -
48 -const port = process.env.PORT || 5000
49 -
50 -app.listen(port, () => {
51 - console.log(`Server Running at ${port}`)
52 -});
...\ No newline at end of file ...\ No newline at end of file
......