A web application to manage and explore a database of superheroes. This solution includes a React front end (using Vite) and a Node.js back end with Express.
- CRUD operations for superheroes
- Superhero details and image gallery
- Pagination for superhero list
- Image upload and management
- Responsive design
- Node.js
- npm or yarn
- MongoDB (local or cloud instance)
git clone https://github.com/daladers/superhero-database.git
cd superhero-databaseIn the server directory, create a .env file with the following variables:
PORT=5000
MONGO_URI=mongodb://localhost:27017/superheroes # or your MongoDB URI# In the root directory
cd superhero-client
npm install # or yarn install
cd ../superhero-server
npm install # or yarn installTo start the app, begin by running the server, then start the client.
Start the Server
cd superhero-server
npm run devThe server will run on http://localhost:3000 by default.
Start the Client
cd superhero-client
npm run devThe client will be available on http://localhost:5173 by default.
superhero-client/: Contains the React front end built with Vite. superhero-server/: Contains the Node.js back end using Express.
Feel free to fork the repository, create a new branch, and submit pull requests.