Skip to content

Commit

Permalink
update base url
Browse files Browse the repository at this point in the history
  • Loading branch information
Codehouze committed Aug 21, 2023
1 parent 011b5bb commit 136d8fe
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 186 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
BASE_URL=https://feedbackbe1.herokuapp.com
BASE_URL=https://feedback-zi3s.onrender.com
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# BASE_URL=
BASE_URL=
190 changes: 22 additions & 168 deletions public/env.js
Original file line number Diff line number Diff line change
@@ -1,202 +1,56 @@
window.env = {
"npm_config_save_dev": "",
"npm_config_legacy_bundling": "",
"npm_config_dry_run": "",
"npm_config_viewer": "man",
"npm_config_only": "",
"npm_config_commit_hooks": "true",
"npm_config_browser": "",
"npm_package_gitHead": "ff4824986dcd1629e4d8a0899944a7ef528f4d6a",
"npm_config_also": "",
"npm_package_dependencies_react_icon": "^1.0.0",
"npm_package_dependencies_react_bootstrap_sweetalert": "^5.2.0",
"npm_config_sign_git_commit": "",
"npm_config_rollback": "true",
"TERM_PROGRAM": "vscode",
"NODE": "/usr/local/bin/node",
"npm_config_usage": "",
"npm_config_audit": "true",
"INIT_CWD": "/Users/emmanuelmaxwell/Documents/sandbox/feedback-app/src",
"npm_config_globalignorefile": "/usr/local/etc/npmignore",
"INIT_CWD": "/Users/emmanuelmaxwell/Documents/sandbox/feedback-app",
"TERM": "xterm-256color",
"SHELL": "/bin/zsh",
"npm_config_shell": "/bin/zsh",
"npm_config_maxsockets": "50",
"npm_config_init_author_url": "",
"npm_package_dependencies_react_dotenv": "^0.1.3",
"npm_config_shrinkwrap": "true",
"npm_config_parseable": "",
"npm_config_metrics_registry": "https://registry.npmjs.org/",
"TMPDIR": "/var/folders/r6/rhw_r3ts7qd6f88m2jm70ykm0000gn/T/",
"npm_config_timing": "",
"npm_config_init_license": "ISC",
"npm_config_if_present": "",
"TERM_PROGRAM_VERSION": "1.64.2",
"npm_package_scripts_dev": "concurrently \"npm run server\" \"npm run start\"",
"npm_config_sign_git_tag": "",
"npm_config_init_author_email": "",
"npm_config_cache_max": "Infinity",
"npm_package_dependencies_uuid": "^8.3.2",
"npm_config_global_prefix": "/usr/local",
"TERM_PROGRAM_VERSION": "1.81.1",
"ZDOTDIR": "/Users/emmanuelmaxwell",
"ORIGINAL_XDG_CURRENT_DESKTOP": "undefined",
"npm_config_preid": "",
"npm_config_long": "",
"npm_config_local_address": "",
"npm_config_git_tag_version": "true",
"npm_config_cert": "",
"npm_config_registry": "https://registry.npmjs.org/",
"MallocNanoZone": "0",
"COLOR": "1",
"npm_config_noproxy": "",
"npm_config_fetch_retries": "2",
"npm_package_private": "true",
"npm_package_scripts_server": "json-server --watch db.json --port 5000",
"npm_package_dependencies_react_dom": "^17.0.2",
"npm_config_versions": "",
"npm_config_message": "%s",
"npm_config_key": "",
"npm_package_readmeFilename": "README.md",
"npm_package_description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
"npm_package_dependencies_web_vitals": "^2.1.3",
"npm_config_local_prefix": "/Users/emmanuelmaxwell/Documents/sandbox/feedback-app",
"USER": "emmanuelmaxwell",
"npm_package_dependencies__testing_library_user_event": "^13.5.0",
"COMMAND_MODE": "unix2003",
"npm_config_globalconfig": "/usr/local/etc/npmrc",
"npm_package_browserslist_development_1": "last 1 firefox version",
"npm_config_prefer_online": "",
"npm_config_logs_max": "10",
"npm_config_always_auth": "",
"npm_package_browserslist_development_0": "last 1 chrome version",
"npm_package_dependencies_react_icons": "^4.3.1",
"npm_package_dependencies_react_google_login": "^5.2.2",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.SiXq89tCfv/Listeners",
"npm_package_browserslist_development_2": "last 1 safari version",
"SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.H38F8rygHu/Listeners",
"__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0",
"npm_execpath": "/usr/local/lib/node_modules/npm/bin/npm-cli.js",
"npm_config_global_style": "",
"npm_config_cache_lock_retries": "10",
"npm_config_update_notifier": "true",
"npm_config_cafile": "",
"npm_config_heading": "npm",
"npm_config_audit_level": "low",
"npm_config_searchlimit": "20",
"npm_config_read_only": "",
"npm_config_offline": "",
"npm_config_fetch_retry_mintimeout": "10000",
"npm_config_json": "",
"npm_config_access": "",
"npm_config_argv": "{\"remain\":[],\"cooked\":[\"run\",\"build\"],\"original\":[\"run\",\"build\"]}",
"PATH": "/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/emmanuelmaxwell/Documents/sandbox/feedback-app/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin",
"npm_config_allow_same_version": "",
"npm_config_https_proxy": "",
"npm_config_engine_strict": "",
"npm_config_description": "true",
"PATH": "/Users/emmanuelmaxwell/Documents/sandbox/feedback-app/node_modules/.bin:/Users/emmanuelmaxwell/Documents/sandbox/node_modules/.bin:/Users/emmanuelmaxwell/Documents/node_modules/.bin:/Users/emmanuelmaxwell/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/usr/local/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/local/bin:/opt/local/sbin",
"npm_package_json": "/Users/emmanuelmaxwell/Documents/sandbox/feedback-app/package.json",
"_": "/Users/emmanuelmaxwell/Documents/sandbox/feedback-app/node_modules/.bin/react-dotenv",
"LaunchInstanceID": "56977914-405A-4BD5-8A24-BD01ED5C2977",
"npm_config_userconfig": "/Users/emmanuelmaxwell/.npmrc",
"npm_config_init_module": "/Users/emmanuelmaxwell/.npm-init.js",
"npm_package_browserslist_production_1": "not dead",
"USER_ZDOTDIR": "/Users/emmanuelmaxwell",
"__CFBundleIdentifier": "com.microsoft.VSCode",
"npm_config_cidr": "",
"npm_package_browserslist_production_0": ">0.2%",
"npm_command": "start",
"PWD": "/Users/emmanuelmaxwell/Documents/sandbox/feedback-app",
"npm_config_user": "",
"npm_config_node_version": "14.17.6",
"npm_lifecycle_event": "build",
"npm_package_browserslist_production_2": "not op_mini all",
"npm_package_dependencies_sweetalert": "^2.1.2",
"npm_config_save": "true",
"npm_config_ignore_prepublish": "",
"npm_config_editor": "vi",
"npm_config_auth_type": "legacy",
"npm_lifecycle_event": "start",
"EDITOR": "vi",
"npm_package_name": "feedback-app",
"LANG": "en_GB.UTF-8",
"npm_config_tag": "latest",
"npm_config_script_shell": "",
"npm_config_progress": "true",
"npm_config_global": "",
"npm_config_before": "",
"npm_package_scripts_build": "react-dotenv && react-scripts build",
"npm_package_scripts_start": "react-dotenv && react-scripts start",
"npm_config_searchstaleness": "900",
"npm_config_optional": "true",
"npm_config_ham_it_up": "",
"npm_package_dependencies_react_router_dom": "^6.2.1",
"LANG": "en_US.UTF-8",
"VSCODE_GIT_ASKPASS_EXTRA_ARGS": "--ms-enable-electron-run-as-node",
"XPC_FLAGS": "0x0",
"npm_config_save_prod": "",
"npm_config_force": "",
"npm_config_bin_links": "true",
"npm_config_searchopts": "",
"npm_config_node_gyp": "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",
"npm_config_depth": "Infinity",
"npm_config_sso_poll_frequency": "500",
"npm_config_rebuild_bundle": "true",
"npm_package_version": "0.1.0",
"XPC_SERVICE_NAME": "0",
"npm_config_unicode": "true",
"SHLVL": "4",
"VSCODE_INJECTION": "1",
"SHLVL": "2",
"HOME": "/Users/emmanuelmaxwell",
"npm_config_fetch_retry_maxtimeout": "60000",
"npm_package_scripts_test": "react-scripts test",
"VSCODE_GIT_ASKPASS_MAIN": "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",
"APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "true",
"npm_config_tag_version_prefix": "v",
"npm_config_strict_ssl": "true",
"npm_config_sso_type": "oauth",
"npm_config_scripts_prepend_node_path": "warn-only",
"npm_config_save_prefix": "^",
"npm_config_loglevel": "notice",
"npm_config_ca": "",
"npm_package_dependencies_framer_motion": "^4.1.17",
"npm_package_dependencies_dotenv": "^16.0.0",
"npm_config_save_exact": "",
"npm_config_group": "20",
"npm_config_fetch_retry_factor": "10",
"npm_config_dev": "",
"npm_package_dependencies__testing_library_jest_dom": "^5.16.1",
"npm_config_version": "",
"npm_config_prefer_offline": "",
"npm_config_cache_lock_stale": "60000",
"npm_config_otp": "",
"npm_config_cache_min": "10",
"npm_config_searchexclude": "",
"npm_config_cache": "/Users/emmanuelmaxwell/.npm",
"npm_package_dependencies_react_scripts": "5.0.0",
"LOGNAME": "emmanuelmaxwell",
"npm_lifecycle_script": "react-dotenv && react-scripts build",
"npm_config_color": "true",
"npm_config_proxy": "",
"npm_config_package_lock": "true",
"VSCODE_GIT_IPC_HANDLE": "/var/folders/r6/rhw_r3ts7qd6f88m2jm70ykm0000gn/T/vscode-git-6d84922893.sock",
"npm_config_package_lock_only": "",
"npm_config_fund": "true",
"npm_package_eslintConfig_extends_1": "react-app/jest",
"npm_package_dependencies_react": "^17.0.2",
"npm_config_save_optional": "",
"npm_package_eslintConfig_extends_0": "react-app",
"npm_config_ignore_scripts": "",
"npm_config_user_agent": "npm/6.14.15 node/v14.17.6 darwin x64",
"npm_package_dependencies__testing_library_react": "^12.1.2",
"npm_config_cache_lock_wait": "10000",
"VSCODE_GIT_ASKPASS_NODE": "/Applications/Visual Studio Code.app/Contents/MacOS/Electron",
"npm_lifecycle_script": "react-dotenv && react-scripts start",
"VSCODE_GIT_IPC_HANDLE": "/var/folders/r6/rhw_r3ts7qd6f88m2jm70ykm0000gn/T/vscode-git-8168e0e1c2.sock",
"npm_config_user_agent": "npm/8.5.0 node/v16.14.2 darwin x64 workspaces/false",
"VSCODE_GIT_ASKPASS_NODE": "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)",
"GIT_ASKPASS": "/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh",
"npm_config_production": "",
"npm_config_send_metrics": "",
"npm_config_save_bundle": "",
"npm_package_dependencies_json_server": "^0.17.0",
"npm_config_umask": "0022",
"npm_config_node_options": "",
"npm_config_init_version": "1.0.0",
"npm_config_init_author_name": "",
"npm_config_git": "git",
"npm_config_scope": "",
"npm_package_scripts_eject": "react-scripts eject",
"SECURITYSESSIONID": "186a3",
"npm_config_unsafe_perm": "true",
"npm_config_tmp": "/var/folders/r6/rhw_r3ts7qd6f88m2jm70ykm0000gn/T",
"npm_config_onload_script": "",
"npm_node_execpath": "/usr/local/bin/node",
"npm_config_prefix": "/usr/local",
"npm_config_link": "",
"npm_config_format_package_lock": "true",
"COLORTERM": "truecolor",
"BASE_URL": "https://feedbackbe1.herokuapp.com"
"BASE_URL": "https://feedback-zi3s.onrender.com"
};
15 changes: 5 additions & 10 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Header from "./Components/Header";
import Login from "./Components/Login";
// import Login from "./Components/Login";
import FeedbackList from "./Components/FeedbackList";
import FeedbackStats from "./Components/FeedbackStats";
import FeedbackForm from "./Components/FeedbackForm";
import AboutPage from "./pages/AboutPage";
import Footer from "./Components/Footer";
import { FeedbackProvider } from "./Context/FeedbackContext";
import AboutIconLink from "./Components/AboutIconLink";

function App() {
return (
<FeedbackProvider>

<Router>
<Header />

<div className="container">
<Routes>
{/* <Route path="/" element={ <Login />} /> */}

<Route
path="/"
element={
Expand All @@ -31,14 +31,9 @@ function App() {
></Route>
<Route path="/about" element={<AboutPage />} />
</Routes>

<AboutIconLink />
</div>
{/* <div className="footer">
<h2>
Powered by<a href="https://github.com/Codehouze"> Codehouze</a>
</h2>
</div> */}
<AboutIconLink />
<Footer />
</Router>
</FeedbackProvider>
);
Expand Down
13 changes: 13 additions & 0 deletions src/Components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from "react";

function Footer() {
return (
<div className="footer">
<h2>
Powered by<a href="https://github.com/Codehouze"> Codehouze</a>
</h2>
</div>
);
}

export default Footer;
4 changes: 2 additions & 2 deletions src/Context/FeedbackContext.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createContext, useState, useEffect } from "react";
// import SweetAlert from '../Components/shared/SweetAlert';
// import SweetAlert from "../Components/shared/SweetAlert";
import env from "react-dotenv";
const baseUrl = env.BASE_URL
const baseUrl = env.BASE_URL;

const FeedbackContext = createContext();

Expand Down
5 changes: 5 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,9 @@ input:focus {



}

.link {
color: #ff6a95;
text-decoration: none;
}
10 changes: 5 additions & 5 deletions src/pages/AboutPage.jsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import React from "react";
import Card from "../Components/shared/Card";
import { Link } from 'react-router-dom'
import { Link } from "react-router-dom";
function AboutPage() {
return (
<Card>
<div className="about">
<h1>About Us</h1>
<p>this is a React App to leave feedback for a product or service </p>
<p>This is a React App to leave feedback for a Product or Service </p>
<p>Version: 1.0.0</p>

<p>
<Link to="/">Back To Home</Link>
</p>
<button className="btn btn-primary btn:hover">
<Link className="link" to="/">Back To Home</Link>
</button>
</div>
</Card>
);
Expand Down

0 comments on commit 136d8fe

Please sign in to comment.