Welcome to the Wish Simulator, a fun and interactive web app created to simulate the excitement of making wishes and collecting unique cards. Originally designed for UC San Diego classmates and friends, this app brings joy and creativity to everyone!
You can check out the live demo of the app here: Wish Simulator Demo
- π΄ Card Collection: Acquire beautifully designed cards with various rarities.
- πͺ Wish Mechanics: Simulate single or multi-pulls with rarity-based outcomes.
- π Inventory Management:
- Filter by Rarity: Quickly find cards of a specific rarity.
- Sort Options: Organize your collection by rarity or the time of acquisition.
- π Dynamic UI: User-friendly interface with interactive dropdowns and polished animations.
- π± Responsive Design: Works seamlessly on desktop and mobile.
- Frontend: React (TypeScript)
- React Hooks: Utilized to manage state and lifecycle methods effectively.
- React Router: For navigating between different pages (Home, Inventory, About).
- Styling: TailwindCSS, custom CSS
- TailwindCSS: Utility-first CSS framework to create responsive layouts quickly.
- Custom CSS: Additional styling for unique design elements.
- Deployment: Vercel
- Vercel: Hosting and deployment platform for fast and easy deployments.
- State Management: React useState and useEffect Hooks
- Version Control: Git and GitHub for source code management
- Build Tools: Vite for fast development and optimized production builds
Follow these instructions to run the app locally.
- Node.js and npm installed on your machine.
- A Git client for version control.
-
Clone the Repository:
git clone https://github.com/chw081/we-wish-simulator.git cd we-wish-simulator -
Install Dependencies:
npm install
-
Run the App Locally:
npm run dev
-
Open your browser and go to:
http://localhost:5173
- Home Page: Make a single wish or ten wishes to collect cards.
- Inventory: View all the cards youβve collected.
- About Page: Learn more about the app and its creator.
The app is deployed on Vercel. Follow these steps to deploy:
-
Build the Project:
npm run build
-
Deploy with Vercel:
- Install the Vercel CLI if you havenβt already:
npm install -g vercel
- Deploy the app:
vercel
- Install the Vercel CLI if you havenβt already:
-
Visit Your Live App: Vercel provides a live URL after deployment.
public/
βββ assets/ # Static assets (e.g., images)
src/
βββ components/ # Reusable components (Navbar, Footer, Card, etc.)
βββ pages/ # Page-level components (Home, InventoryPage, About)
βββ services/ # Business logic (e.g., wishLogic.ts)
βββ App.tsx # Main app entry point
βββ index.tsx # React entry point
βββ styles/ # Global and custom CSS
- π Leaderboard to compare collections with friends.
- π Implement persistent storage for inventory.
- π¨ Design new card themes for holidays and events.
- π§ββοΈ Additional wish probabilities, card designs, and special effects.
- π¨ Custom themes and user preferences.
- π Statistics to track wish results and rare card pull rates.
Contributions are welcome! Feel free to fork the repository and submit a pull request.
- Fork the project.
- Create your feature branch:
git checkout -b feature/AmazingFeature
- Commit your changes:
git commit -m 'Add some AmazingFeature' - Push to the branch:
git push origin feature/AmazingFeature
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Built with β€οΈ to share fun moments with friends and anyone who loves games.
- Special thanks to Vercel for easy deployment.
Follow me and give a β if you like this website!