Getting Heroes App running locally takes only a few commands. The app has no backend service or environment variables to configure — once dependencies are installed you can start the dev server and immediately explore the hero catalog. Follow the steps below to go from zero to a running app.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ludwiigdev/Heroes_App/llms.txt
Use this file to discover all available pages before exploring further.
Clone the Repository
Pull the source code from GitHub and move into the project directory.This creates a local
Heroes_App/ folder containing the full project source, including all static hero images in public/heroes/.Install Dependencies
Install all Node.js dependencies declared in Key packages installed include React 19, React Router DOM v6, Bootstrap 5.3, and the Jest + React Testing Library suite for tests.
package.json. Use whichever package manager you prefer.Start the Development Server
Launch the Vite dev server. It starts almost instantly thanks to Vite’s native ESM dev mode.You should see output similar to:
Open the App and Log In
Open http://localhost:5173/#/login in your browser. You will see the Heroes App login page.Click the Login button — no username or password is required. The app stores the following user object in After login you land on
localStorage and redirects you to the Marvel heroes page:/#/marvel where you can browse the Marvel hero catalog, switch to DC Comics via the navbar, or search across all heroes.This login flow is intentionally simplified to demonstrate React context-based auth and protected routing. There is no real credential check or API call involved.
Build for Production (Optional)
When you’re ready to create an optimized production bundle, run the build command. The output is written to the
dist/ directory.npm run preview spins up a local static server pointing at dist/ so you can verify the production build before deploying. The public/_redirects file included in the repo configures redirect rules for static hosts such as Netlify.Running Tests
The project ships with a Jest + React Testing Library suite. Run it in watch mode with:jest --watchAll, which re-runs affected tests on every file save. Test files live in the tests/ directory and mirror the src/ folder structure.
