diff --git a/public/index.html b/public/index.html index aa069f2..dfd3157 100644 --- a/public/index.html +++ b/public/index.html @@ -2,14 +2,14 @@ - + - + - React App + WorldWide Frames diff --git a/public/logo123.ico b/public/logo123.ico new file mode 100644 index 0000000..f741ca2 Binary files /dev/null and b/public/logo123.ico differ diff --git a/public/logo123.jpg b/public/logo123.jpg new file mode 100644 index 0000000..df23036 Binary files /dev/null and b/public/logo123.jpg differ diff --git a/public/manifest.json b/public/manifest.json index 080d6c7..0a1ac90 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,20 +1,20 @@ { - "short_name": "React App", + "short_name": "WorldWide Frames", "name": "Create React App Sample", "icons": [ { - "src": "favicon.ico", + "src": "logo123.ico", "sizes": "64x64 32x32 24x24 16x16", "type": "image/x-icon" }, { - "src": "logo192.png", - "type": "image/png", + "src": "logo123.jpg", + "type": "image/jpg", "sizes": "192x192" }, { - "src": "logo512.png", - "type": "image/png", + "src": "logo523.jpg", + "type": "image/jpg", "sizes": "512x512" } ], diff --git a/server.js b/server.js index d3f4c6e..6340a0a 100644 --- a/server.js +++ b/server.js @@ -14,7 +14,7 @@ const saltRounds = 10; app.use(express.json()); app.use(cors({ - origin: ["http://localhost:3000"], + origin: ["http://3.93.4.5:3000"], methods: ["GET", "POST"], credentials: true, })); diff --git a/src/Pages/RegistrationPage/RegistrationPage.js b/src/Pages/RegistrationPage/RegistrationPage.js index baed28a..e565509 100644 --- a/src/Pages/RegistrationPage/RegistrationPage.js +++ b/src/Pages/RegistrationPage/RegistrationPage.js @@ -33,7 +33,7 @@ function Registration() { return; } - Axios.post("http://localhost:5000/register", data).then((response) => { + Axios.post("http://3.93.4.5:5000/register", data).then((response) => { if (response.data.error) { alert(response.data.error); console.log("error!"); diff --git a/src/Pages/SignInPage/SignInPage.js b/src/Pages/SignInPage/SignInPage.js index 3fc1048..23b8fdd 100644 --- a/src/Pages/SignInPage/SignInPage.js +++ b/src/Pages/SignInPage/SignInPage.js @@ -16,7 +16,7 @@ function SignIn() { let history = useHistory(); const login = () => { - Axios.post("http://localhost:5000/signin", + Axios.post("http://3.93.4.5:5000/signin", { username: username, password: password, @@ -28,12 +28,11 @@ function SignIn() { window.location.reload(true); history.push("/"); } - }); }; useEffect(() => { - Axios.get("http://localhost:5000/signin").then((response) => { + Axios.get("http://3.93.4.5:5000/signin").then((response) => { if (response.data.user) { history.push("/"); }