Prerequisites
Before you start, make sure you have the following installed:- Node.js 18 or later — nodejs.org
- Git — git-scm.com
Running the app locally
Start the development server
Run the dev server with Vite:Vite will print the local URL once the server is ready.
Open the app in your browser
Navigate to http://localhost:5173. You should see the Info Crypto home page with the top 20 cryptocurrencies by market cap.
Info Crypto fetches data from the CoinGecko public API, which has a free-tier rate limit of approximately 10–30 requests per minute. The app includes a built-in 5-minute localStorage cache to minimize API calls, but you may see rate-limit errors if you reload the page frequently during development.
Available scripts
The following scripts are defined inpackage.json:
| Script | Command | Description |
|---|---|---|
dev | npm run dev | Start the Vite development server at localhost:5173 |
build | npm run build | Compile and bundle the app for production |
preview | npm run preview | Serve the production build locally for testing |
lint | npm run lint | Run ESLint across all source files |
format | npm run format | Format all files with Prettier |
host | npm run host | Start the dev server with network access (vite --host) |