This project is set up with Parcel Bundler, an npm package that compiles our frontend assets and comes with an integrated development server.
The dev server for the React page runs on port 1234
by default, but will use another if 1234
is
being used by another application.
The dev server for the API runs on port 4000
and this port needs to be free, or the server won't be able to start.
- Clone the repo.
- Navigate into the project folder.
- Run
npm i
to download the project's dependencies listed in thepackage.json
. - Run
npm start
to compile the React project and spin up the app onhttp://localhost:1234
. - Run
npm run server
to spin up a local API onhttp://localhost:4000/friends
.