All of your front end code should be in this folder.
Once you have your development environment up and running you'll be able to see the app running here:
http://localhost:3000
In the example we have provided the below for you to see:
- How to display a list of profiles
- How to connect to your API
- What to display if your request to the API doesn't return any profiles
In the services/
folder there is an example profileService.js
. The sole purpose of this file is to create various fetch requests to our profile API and return the data to be used by any component.
You can see an example of a get request using the popular javascript library axios. Axios can help us save time by writing less code amongst it's many benefits.
If you prefer to run the front end in isolation from the back end you can do so by running the below command to start it up:
npm start