This is the frontend for the Superhero application.
The backend is deployed on Render.com with a PostgreSQL database.
- Install dependencies:
npm install
- Create a
.envfile:VITE_API_URL=https://your-backend.onrender.com - Start the frontend:
npm run dev
The app will be available at http://localhost:5173 (or the port shown by Vite).
- The backend and DB is deployed on Render.com
- Uses a PostgreSQL database
- Documentation and setup instructions for the backend are in the https://github.com/hellwind2019/superhero-database
- Images are stored at Firebase Storage
- The backend API is available at the URL specified in
VITE_API_URLor defaults tohttp://localhost:3000 - The API provides the following endpoints:
GET /api/superheroesPOST /api/superheroesPUT /api/superheroes/:idDELETE /api/superheroes/:idGET /api/images/:heroIdPOST /api/images/uploadPOST /api/imagesDELETE /api/images/:id