Skip to content

ekelen/marvel-heroes-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marvel Hero Catalog

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.

Preview

Preview of marvel-heroes-react

Running it

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

⚠️ It's not production ready :)

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:

Workflow

  • 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)

App features

  • Search bar, pagination, other basic catalog features...

Code style

  • 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.

About

An abbreviated catalog of Marvel heroes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published