Run the Frontend
Once we have the code locally, we open up a terminal or command prompt and navigate to directory containing the frontend code.
Once we’re here, we should install the necessary dependencies using the following command:
npm installOnce everything is installed, we’ll run the app with the following command:
npm run devAll that’s left is to open up a browser and visit http://localhost:5173/
And our backend is running, although as we’ve not yet implemented the necessary endpoints on the backend it’s not working completely just yet!
As we build out our backend we should see the frontend starting to resembled the demo earlier in the course.
Summary
- Install dependencies with
npm install - Run the frontend with
npm run dev