You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-5Lines changed: 40 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# dogs
2
2
3
-
This is the starter code for a [Node.js](https://nodejs.org/en/about/)server
4
-
using the [Koa web framework](https://koajs.com/). There a web page in
5
-
`/public` which should be served to the user.
3
+
This is a [Node.js](https://nodejs.org/en/about/)web application
4
+
using the [Koa](https://koajs.com/) and [React](https://reactjs.org/)
5
+
web frameworks.
6
6
7
7
## Getting started
8
8
@@ -17,24 +17,59 @@ $ node --version
17
17
v16.17.0
18
18
```
19
19
20
-
Then, inside this project, run
20
+
Open two terminal sessions. They will be for running the
21
+
frontend and backend separately.
21
22
23
+
To start up the server in the backend,
22
24
```sh
25
+
cd app/backend
23
26
npm install
24
27
node server.js
25
28
```
26
29
27
30
If the server starts successfully, you will see
28
-
29
31
```sh
30
32
Server running on http://localhost:3011
31
33
```
32
34
33
35
in the terminal.
34
36
37
+
38
+
To start up the frontend run
39
+
```sh
40
+
cd app/frontend
41
+
npm install
42
+
npm run start
43
+
```
44
+
in your other terminal tab.
45
+
46
+
Note that `npm install` in this case will result in a few **high severity vulnerabilities** being discovered.
47
+
However, this is just a false positive which you can read more about from a Meta engineer himself [here](https://github.com/facebook/create-react-app/issues/11174)
48
+
49
+
If the server starts successfully, you will see
50
+
```
51
+
You can now view dogs in the browser.
52
+
53
+
Local: http://localhost:3000
54
+
On Your Network: http://networkaddress:3000
55
+
56
+
Note that the development build is not optimized.
57
+
To create a production build, use npm run build.
58
+
59
+
webpack compiled successfully
60
+
```
61
+
62
+
## In your browser
63
+
Once both servers are started, you can navigate to: <br />
0 commit comments