Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
messenger
Commits
1256d0d3
Commit
1256d0d3
authored
Jan 02, 2021
by
Choi Ga Young
Browse files
서버,패키지 설치
parent
c01dfef6
Changes
3
Show whitespace changes
Inline
Side-by-side
client/src/index.js
View file @
1256d0d3
...
...
@@ -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
>
...
...
package.json
View file @
1256d0d3
...
...
@@ -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
"
}
}
server/server.js
View file @
1256d0d3
...
...
@@ -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는 보내는 부분.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment