Commit 1256d0d3 authored by Choi Ga Young's avatar Choi Ga Young
Browse files

서버,패키지 설치

parent c01dfef6
......@@ -4,6 +4,7 @@ import './index.css';
import HomePage from './Pages/HomePage';
import reportWebVitals from './reportWebVitals';
import 'bootstrap/dist/css/bootstrap.min.css';
// import { BrowserRouter as Router, Route, Redirect, Switch } from 'react-router-dom';
ReactDOM.render(
<React.StrictMode>
......
......@@ -17,6 +17,8 @@
"license": "ISC",
"dependencies": {
"express": "^4.17.1",
"nodemon": "^2.0.6"
"mongoose": "^5.11.9",
"nodemon": "^2.0.6",
"validator": "^13.5.2"
}
}
......@@ -2,6 +2,8 @@ import express from 'express';
const app = express() //express 사용
app.use(express.static('../client/build'))
app.get('/', (req, res)=>{
res.send('Hello')
}) //get은 받는 부분 send는 보내는 부분.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment