Skip to content

Commit

Permalink
Feat recoil 상태관리, api 통신, request.headers 토큰 유지, 로그아웃 #54 #64 #66
Browse files Browse the repository at this point in the history
Feat recoil 상태관리, api 통신, request.headers 토큰 유지, 로그아웃 #54 #64 #66
  • Loading branch information
NowVic99 authored Jan 20, 2023
2 parents fffabdd + 3b6468b commit 1cbacd8
Show file tree
Hide file tree
Showing 18 changed files with 1,139 additions and 335 deletions.
1 change: 1 addition & 0 deletions project/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_DB_HOST=""
1 change: 1 addition & 0 deletions project/.env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_DB_HOST="http://pikcha36.o-r.kr:8080"
Binary file not shown.
Binary file not shown.
137 changes: 132 additions & 5 deletions project/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,32 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@actbase/react-daum-postcode": "^1.0.4",
"@react-oauth/google": "^0.6.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.11",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@types/react-modal": "^3.13.1",
"@types/styled-react-modal": "^1.2.2",
"aws-sdk": "^2.1296.0",
"axios": "^1.2.2",
"http-proxy-middleware": "^2.0.6",
"hangul-js": "^0.2.6",
"react": "^18.2.0",
"react-daum-postcode": "^3.1.1",
"react-dom": "^18.2.0",
"react-geocode": "^0.2.3",
"react-google-login": "^5.2.2",
"react-icons": "^4.7.1",
"react-modal": "^3.16.1",
"react-router-dom": "^6.6.2",
"react-scripts": "5.0.1",
"recoil": "^0.7.6",
"recoil-persist": "^4.2.0",
"typescript": "^4.9.4",
"web-vitals": "^2.1.4"
},
Expand Down Expand Up @@ -49,5 +59,6 @@
"devDependencies": {
"@types/styled-components": "^5.1.26",
"styled-components": "^5.3.6"
}
},
"proxy": "http://pikcha36.o-r.kr:8080"
}
27 changes: 16 additions & 11 deletions project/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
import { BrowserRouter, Routes, Route } from "react-router-dom";
import React from "react";
import "./App.css";
import Main from "./Main";
import Login from "./pages/Login";
import Place from "./pages/Place";
import Post from "./pages/Post";
import Map from "./pages/Map";
import PlaceDetail from "./pages/PlaceDetail";
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import React from 'react';
import './App.css';
import Main from './Main';
import LoginSign from './pages/LoginSign';
import Place from './pages/Place';
import Post from './pages/Post';
import Map from './pages/Map';
import WritePost from "./pages/WritePost";
import PlaceDetail from './pages/PlaceDetail';
import { RecoilRoot } from 'recoil';


function App() {
return (
<div className="App">
<BrowserRouter>
<RecoilRoot>
<Routes>
<Route path='/login' element={<LoginSign />}></Route>
<Route path="/" element={<Main />} />
<Route path="/login" element={<Login />} />
<Route path="/place" element={<Place />} />
<Route path="/post" element={<Post />} />
<Route path="/write" element={<WritePost />} />
<Route path="/map" element={<Map />} />
<Route path="/placedetail" element={<PlaceDetail />} />

</Routes>
</RecoilRoot>
</BrowserRouter>
</div>
);
}

export default App;
export default App;
Loading

0 comments on commit 1cbacd8

Please sign in to comment.