Coin Compass is a cryptocurrency price aggregator using Next.js 14 and CoinGecko API.
-
Next.js 14: Taking advantage of the latest features and improvements for a modern and optimized web application.
-
Tailwind CSS: Utility-first CSS framework to style components and pages efficiently.
-
CoinGecko API: Making use of CoinGecko API to access endpoint required for price tracking.
- Responsive Layout
- Light/Dark Mode
- Infinite Scroll Pagination
Make sure you have Node.js
and npm/yarn
installed on your machine.
To get started, follow these steps:
- Clone the repository:
git clone https://github.com/chrisstef/coin-compass.git
- Navigate to the project directory:
cd coin-compass
- Install dependencies:
npm install
or
yarn
Before running the application, you have to configure your environment variables. Follow these steps:
-
Create a
.env.local
file in the root of the project. -
Copy the
.env.example
file to.env.local
:
cp .env.example .env.local
- Replace the placeholders with actual values for your environment variables:
NEXT_PUBLIC_COINGECKO_API_KEY=api_key_goes_here
NEXT_PUBLIC_BASE_URL=http://localhost:3000
In order to run the app, you need the CoinGecko API key (free).
After finishing the above steps, run the following command in the project directory:
npm run dev
or
yarn dev
The project should be up and running! Visit http://localhost:3000
in your browser to view the application.