A small frontend catalog for viewing Marvel universe hero information.
The focus of this project was to test out using React hooks, a feature intended to increase component legibility, maintainability, modularity, and performance (not bad)!
It uses the Bulma CSS framework and was made with Create React App.
This project is intended to be run in a development environment. The environment variables in a frontend build (REACT_APP_...
) are not private.
cp .env .env.local # Add REACT_APP_API_PRIVATE to .env.local
yarn start
However, if you are building for production for use on your personal machine, you can build it similarly:
# Add REACT_APP_API_PRIVATE to .env
yarn build
serve -s build
I made this project to get reacquainted with React basics and to try out the new Hooks feature.
A "roadmap" for this project could look something like this:
- If working on a team, create container for development (Dockerize)
- If developing for production, create centralized instructions and automation for build and deployment (Docker + a CI tool)
- Search bar, pagination, other basic catalog features...
- Prefer scoped styling methods to traditional CSS methods and classes (e.g. Styled Components)
- Minimize code duplication (e.g. list rendering, request error handling)
- Centralize common styling variables, such as colors, padding, etc.