4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills
Difficulty
intermediateRepository
Click to openVideo
Not available
Live demo
Not available
Average duration
16 hrs
Technologies
The force is strong with this exercise...
We are going to be building a minimalist version of the Star Wars Databank with a "Read Later" or "Favorites" list functionality.
Do not clone this repository.
The first step to start coding is to clone this react flux boilerplate on your local computer or Gitpod.
a) If using Gitpod (recommended) you can clone the boilerplate by clicking here
b) If working locally type the following command from your command line:
1$ git clone https://github.com/4GeeksAcademy/react-hello-webapp
๐ก Important: Remember to create a new repository, update the remote (git remote set-url origin <your new url>
), and upload the code to your new repository using add
, commit
and push
.
favorites
array in your central store and allow the user to add or remove favorites.Note: Please use https://www.swapi.tech/ instead of https://swapi.dev/ because the second one is causing problems.
Important: The SWAPI doesn't provide the images, you can use https://starwars-visualguide.com/assets/img/ to get the images easily. The focus of this exercise is to practice fetch, router and context; you can focus on the color theme and simple layout to make it look good.
Important 2: Don't worry if the data you get from the SWAPI doesn't match the data you see in starwars.com.
Use all the information provided by the SWAPI (check the docs and/or the json responses).
Implement a "Read Later" functionality, i.e, a button that allows the user to "save" the item (character, vehicle or planet) into a special list. This list will be shown at the bottom of the home page, it resembles the main list but only shows the "saved" elements.
To ensure that the user can "save" the item, you must implement an action that can be accessible from anywhere within the app.
The following features are not needed for the final solution, but you can develop them if you feel confident enough:
+1
Prevent the website from fetching the Startwars API again if refreshed (you can use the localstorage to save the store on the local browser).+3
Implement a search bar with autocomplete for Characters and Planets. When the autocomplete is clicked it should take you to the Character or Planet page.4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills
Difficulty
intermediateRepository
Click to openVideo
Not available
Live demo
Not available
Average duration
16 hrs
Technologies