irongit

'using env'

huncholanehuncholaneauthored
parent 8b20780commit b2dad23df2ab1fb6e72660ba978a69c2e21de072Browse files

5 files changed, +108 -92

+1-0Client/.env.example
@@ -0,0 +1 @@
1+REACT_APP_BASE_URL=http://localhost:5001/
+90-90Client/package.json
@@ -1,92 +1,92 @@
11 {
2- "name": "real-estate",
3- "version": "1.0.1",
4- "private": true,
5- "dependencies": {
6- "@chakra-ui/icons": "^1.1.5",
7- "@chakra-ui/react": "1.8.8",
8- "@chakra-ui/system": "^1.12.1",
9- "@chakra-ui/theme-tools": "^1.3.6",
10- "@emotion/cache": "^11.7.1",
11- "@emotion/react": "^11.4.1",
12- "@emotion/styled": "^11.3.0",
13- "@fullcalendar/core": "^6.1.8",
14- "@fullcalendar/react": "^6.1.8",
15- "@fullcalendar/resource": "^6.1.8",
16- "@fullcalendar/resource-timeline": "^6.1.8",
17- "@fullcalendar/scrollgrid": "^6.1.8",
18- "@hypertheme-editor/chakra-ui": "^0.1.5",
19- "@react-pdf/renderer": "^3.4.4",
20- "@reduxjs/toolkit": "^2.0.1",
21- "@stripe/react-stripe-js": "^2.3.0",
22- "@stripe/stripe-js": "^2.1.6",
23- "apexcharts": "^4.0.0",
24- "axios": "^1.4.0",
25- "chakra-ui-autocomplete": "^1.4.5",
26- "dayjs": "^1.11.10",
27- "exceljs": "^4.4.0",
28- "formik": "^2.4.2",
29- "framer-motion": "^4.1.17",
30- "fullcalendar": "^6.1.8",
31- "html2pdf.js": "^0.10.2",
32- "jwt-decode": "^3.1.2",
33- "moment": "^2.29.4",
34- "papaparse": "^5.4.1",
35- "react": "17.0.2",
36- "react-apexcharts": "^1.4.1",
37- "react-beautiful-dnd": "^13.1.1",
38- "react-calendar": "^3.7.0",
39- "react-custom-scrollbars-2": "^4.2.1",
40- "react-datepicker": "^4.16.0",
41- "react-dom": "17.0.2",
42- "react-dropzone": "^12.0.4",
43- "react-email-editor": "^1.7.11",
44- "react-icons": "^4.3.1",
45- "react-redux": "^7.2.9",
46- "react-router-dom": "^6.14.1",
47- "react-scripts": "^5.0.0",
48- "react-signature-canvas": "^1.0.6",
49- "react-table": "^7.7.0",
50- "react-toastify": "^9.1.3",
51- "redux": "^5.0.1",
52- "redux-persist": "^6.0.0",
53- "redux-thunk": "^3.1.0",
54- "stylis-plugin-rtl": "2.0.2",
55- "xlsx": "^0.18.5",
56- "yup": "^1.2.0"
57- },
58- "scripts": {
59- "start": "react-scripts start",
60- "build": "react-scripts build",
61- "test": "react-scripts test",
62- "eject": "react-scripts eject",
63- "predeploy": "npm run build",
64- "deploy": "gh-pages -d build",
65- "sitemap": "babel-node ./sitemap-builder.js"
66- },
67- "resolutions": {
68- "react-error-overlay": "6.0.9"
69- },
70- "eslintConfig": {
71- "extends": [
72- "react-app",
73- "react-app/jest"
74- ]
75- },
76- "browserslist": {
77- "production": [
78- ">0.2%",
79- "not dead",
80- "not op_mini all"
81- ],
82- "development": [
83- "last 1 chrome version",
84- "last 1 firefox version",
85- "last 1 safari version"
86- ]
87- },
88- "devDependencies": {
89- "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
90- "gh-pages": "^3.2.3"
91- }
2+ "name": "real-estate",
3+ "version": "1.0.1",
4+ "private": true,
5+ "dependencies": {
6+ "@chakra-ui/icons": "^1.1.5",
7+ "@chakra-ui/react": "1.8.8",
8+ "@chakra-ui/system": "^1.12.1",
9+ "@chakra-ui/theme-tools": "^1.3.6",
10+ "@emotion/cache": "^11.7.1",
11+ "@emotion/react": "^11.4.1",
12+ "@emotion/styled": "^11.3.0",
13+ "@fullcalendar/core": "^6.1.8",
14+ "@fullcalendar/react": "^6.1.8",
15+ "@fullcalendar/resource": "^6.1.8",
16+ "@fullcalendar/resource-timeline": "^6.1.8",
17+ "@fullcalendar/scrollgrid": "^6.1.8",
18+ "@hypertheme-editor/chakra-ui": "^0.1.5",
19+ "@react-pdf/renderer": "^3.4.4",
20+ "@reduxjs/toolkit": "^2.0.1",
21+ "@stripe/react-stripe-js": "^2.3.0",
22+ "@stripe/stripe-js": "^2.1.6",
23+ "apexcharts": "^4.0.0",
24+ "axios": "^1.4.0",
25+ "chakra-ui-autocomplete": "^1.4.5",
26+ "dayjs": "^1.11.10",
27+ "exceljs": "^4.4.0",
28+ "formik": "^2.4.2",
29+ "framer-motion": "^4.1.17",
30+ "fullcalendar": "^6.1.8",
31+ "html2pdf.js": "^0.10.2",
32+ "jwt-decode": "^3.1.2",
33+ "moment": "^2.29.4",
34+ "papaparse": "^5.4.1",
35+ "react": "17.0.2",
36+ "react-apexcharts": "^1.4.1",
37+ "react-beautiful-dnd": "^13.1.1",
38+ "react-calendar": "^3.7.0",
39+ "react-custom-scrollbars-2": "^4.2.1",
40+ "react-datepicker": "^4.16.0",
41+ "react-dom": "17.0.2",
42+ "react-dropzone": "^12.0.4",
43+ "react-email-editor": "^1.7.11",
44+ "react-icons": "^4.3.1",
45+ "react-redux": "^7.2.9",
46+ "react-router-dom": "^6.14.1",
47+ "react-scripts": "^5.0.0",
48+ "react-signature-canvas": "^1.0.6",
49+ "react-table": "^7.7.0",
50+ "react-toastify": "^9.1.3",
51+ "redux": "^5.0.1",
52+ "redux-persist": "^6.0.0",
53+ "redux-thunk": "^3.1.0",
54+ "stylis-plugin-rtl": "2.0.2",
55+ "xlsx": "^0.18.5",
56+ "yup": "^1.2.0"
57+ },
58+ "scripts": {
59+ "start": "DISABLE_ESLINT_PLUGIN=true react-scripts start",
60+ "build": "react-scripts build",
61+ "test": "react-scripts test",
62+ "eject": "react-scripts eject",
63+ "predeploy": "npm run build",
64+ "deploy": "gh-pages -d build",
65+ "sitemap": "babel-node ./sitemap-builder.js"
66+ },
67+ "resolutions": {
68+ "react-error-overlay": "6.0.9"
69+ },
70+ "eslintConfig": {
71+ "extends": [
72+ "react-app",
73+ "react-app/jest"
74+ ]
75+ },
76+ "browserslist": {
77+ "production": [
78+ ">0.2%",
79+ "not dead",
80+ "not op_mini all"
81+ ],
82+ "development": [
83+ "last 1 chrome version",
84+ "last 1 firefox version",
85+ "last 1 safari version"
86+ ]
87+ },
88+ "devDependencies": {
89+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
90+ "gh-pages": "^3.2.3"
91+ }
9292 }
+15-2Client/src/constant.js
@@ -1,4 +1,17 @@
11 export const constant = {
2- // baseUrl: process.env.REACT_APP_BASE_URL
3- baseUrl: "http://localhost:5001/", // Assuming we are using localhost. This should be in .env file but I want to show the problem
2+ baseUrl: process.env.REACT_APP_BASE_URL,
3+ // baseUrl: "http://localhost:5001/", // Assuming we are using localhost. This should be in .env file but I want to show the problem
44 };
5+console.log(constant);
6+console.log(constant);
7+console.log(constant);
8+console.log(constant);
9+console.log(constant);
10+console.log(constant);
11+console.log(constant);
12+console.log(constant);
13+console.log(constant);
14+console.log(constant);
15+console.log(constant);
16+console.log(constant);
17+console.log(constant);
+1-0server/.dockerignore
@@ -0,0 +1 @@
1+node_modules
+1-0server/dockerfile
@@ -0,0 +1 @@
1+FROM node: