Skip to main content
Info Crypto is a React application that displays live cryptocurrency prices, charts, news, and a built-in converter. This guide walks you through getting the app running on your machine.

Prerequisites

Before you start, make sure you have the following installed:

Running the app locally

1

Clone the repository

Clone the Info Crypto repository from GitHub:
git clone https://github.com/MateoKania/crypto.git
cd crypto
2

Install dependencies

Install all required packages using your preferred package manager:
npm install
3

Start the development server

Run the dev server with Vite:
npm run dev
Vite will print the local URL once the server is ready.
4

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 in package.json:
ScriptCommandDescription
devnpm run devStart the Vite development server at localhost:5173
buildnpm run buildCompile and bundle the app for production
previewnpm run previewServe the production build locally for testing
lintnpm run lintRun ESLint across all source files
formatnpm run formatFormat all files with Prettier
hostnpm run hostStart the dev server with network access (vite --host)
Use npm run host when you want to test the app on another device on the same network, such as a phone or tablet. Vite will print the local network IP address alongside the localhost URL.

Build docs developers (and LLMs) love