Skip to content

Repository files navigation

Superhero Database

This is the frontend for the Superhero application.
The backend is deployed on Render.com with a PostgreSQL database.

  1. Install dependencies:
    npm install
  2. Create a .env file:
    VITE_API_URL=https://your-backend.onrender.com
    
  3. Start the frontend:
    npm run dev

The app will be available at http://localhost:5173 (or the port shown by Vite).


Backend


📝 Assumptions

  • The backend API is available at the URL specified in VITE_API_URL or defaults to http://localhost:3000
  • The API provides the following endpoints:
    • GET /api/superheroes
    • POST /api/superheroes
    • PUT /api/superheroes/:id
    • DELETE /api/superheroes/:id
    • GET /api/images/:heroId
    • POST /api/images/upload
    • POST /api/images
    • DELETE /api/images/:id

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages