¶Project structure
git clone https://github.com/apollographql/odyssey-lift-off-part1
We'll build a full-stack app that is composed of two parts:
- The backend app in the server/ directory
- The frontend app located in the client/ directory
- You'll also find a final/ folder that contains the final state of the project once you've completed the course. Feel free to use it as a guide!
¶ npm install
-
cd server && npm install && npm start
-
cd client && npm install && npm start -- --host 0.0.0.0
-
server side
[alexlai@orgpi58G server]$ npm start
> catstronauts-server-complete@1.0.0 start
> nodemon src/index
[nodemon] 3.0.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node src/index.js`
[nodemon] clean exit - waiting for changes before restart
- client side
[alexlai@orgpi58G server]$ npm start -- --host 0.0.0.0
VITE v4.4.4 ready in 282 ms
➜ Local: http://localhost:3000/
➜ Network: http://192.168.48.247:3000/
➜ press h to show help
Shortcuts
press r to restart the server
press u to show server url
press o to open in browser
press c to clear console
press q to quit