I created a React app called Sextant through Cisco's Intro to Software Engineering Virtual Experience Program on theforage.com.
Dar-Ci Calhoun
This app has four main components:
- Frontend:
- The first section displays the IPv4 address of the user.
- The second section displays the IPv6 address of the user.
- The third section displays the latency of packages received from a websocket connection to the Pylon server.
- Backend:
- This is a simple server that, upon a websocket connection being established with a client, will begin sending packages containing a timestamp message to this client at an interval of 100 milliseconds.
You can find the modules used in creating this application by navigating to sextant/package.json for the frontend resources and pylon/package.json for the backend resources.
- Clone this repository to your local machine.
- Navigate to the
pylondirectory and runnpm i. Next, runnode server.jsto get the server going. - Navigate to the
sextantdirectory and runnpm iin a separate command line window. Next, runnpm start, which should automatically open a new page in your browser at the urllocalhost:3000that displays the frontend app.
Below are some helpful documentation that aided me in completing this project.
- Inspiration for Card Wrapper Design: Material UI
- Conditional Rendering when handling GET requests: reactjs.org
- Making calls to Ipify API: ipify.org
- Fetching Data: developer.mozilla.org