Toggle navigation
Toggle navigation
This project
Loading...
Sign in
황선혁
/
weather_chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Eric Whale
2022-05-28 21:38:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
194ae1fd0953a0a3dcc83b03ef052366b367f92c
194ae1fd
1 parent
137e1b90
Setup npm script for client/server
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
client/src/index.js
package-lock.json
package.json
client/src/index.js
View file @
194ae1f
...
...
@@ -14,8 +14,7 @@ const root = ReactDOM.createRoot(document.getElementById("root"));
root
.
render
(
<
BrowserRouter
>
<
Routes
>
// root route is for chatroom
<
Route
path
=
"/"
element
=
{
<
App
/>
}
/
>
<
Route
path
=
"/"
element
=
{
<
App
/>
}
/> /
/
App
=
chatroom
<
Route
path
=
"/login"
element
=
{
<
Login
/>
}
/
>
<
Route
path
=
"/signup"
element
=
{
<
Signup
/>
}
/
>
<
Route
path
=
"/userroom"
element
=
{
<
Userroom
/>
}
/
>
...
...
package-lock.json
View file @
194ae1f
This diff is collapsed. Click to expand it.
package.json
View file @
194ae1f
...
...
@@ -5,7 +5,9 @@
"main"
:
"server.js"
,
"scripts"
:
{
"start"
:
"node server.js"
,
"server"
:
"nodemon server.js"
"server"
:
"nodemon server.js"
,
"client"
:
"npm start --prefix client"
,
"dev"
:
"concurrently
\"
npm run client
\"
\"
npm run server
\"
"
},
"repository"
:
{
"type"
:
"git"
,
...
...
@@ -23,6 +25,7 @@
"mongoose"
:
"^6.3.4"
},
"devDependencies"
:
{
"concurrently"
:
"^7.2.1"
,
"nodemon"
:
"^2.0.16"
}
}
...
...
Please
register
or
login
to post a comment