Coder Social home page Coder Social logo

crypto-tracker's Introduction

Crypto Live Tracker Documentation

Overview

Crypto Live Tracker is a Next.js application designed to provide real-time tracking and analytics of cryptocurrency data. It leverages various technologies including React, TypeScript, Tailwind CSS, and Axios for fetching data from external APIs.

Built With

Next.js Tailwind TypeScript npm

Getting Started

Prerequisites

  • Node.js installed on your machine.
  • A package manager such as npm, yarn, pnpm, or bun.

Installation

  1. Clone the repository to your local machine.

  2. Navigate to the project directory.

  3. Install the dependencies by running one of the following commands based on your package manager:

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
    # or
    bun dev

Running the Development Server

To start the development server, run:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result. The page auto-updates as you edit the files.

Project Structure

├── app
│   ├── (routes)
│   │   ├── (home)
│   │   │   └── page.tsx
│   │   ├── layout.tsx
│   │   └── providers.tsx
│   ├── favicon.ico
│   ├── globals.css
│   └── layout.tsx
├── components
│   ├── crypto-table
│   │   ├── cells
│   │   │   ├── change-cell.tsx
│   │   │   ├── crypto-cell.tsx
│   │   │   ├── price-cell.tsx
│   │   │   └── sparkline-cell.tsx
│   │   ├── columns
│   │   │   └── table-columns.tsx
│   │   ├── crypto-table.tsx
│   │   └── index.ts
│   └── ui
│       ├── badge.tsx
│       ├── button.tsx
│       ├── command.tsx
│       ├── container.tsx
│       ├── data-table
│       │   ├── data-table-faceted-filter.tsx
│       │   ├── data-table-pagination.tsx
│       │   ├── data-table.tsx
│       │   └── index.ts
│       ├── dialog.tsx
│       ├── popover.tsx
│       ├── select.tsx
│       ├── separator.tsx
│       ├── skeleton.tsx
│       ├── sparkline.tsx
│       └── table.tsx
├── config
│   └── index.ts
├── hooks
│   ├── useCryptoData.ts
│   ├── useKlinesData.ts
│   └── useTable.ts
├── lib
│   └── tw.ts
├── services
│   └── api.service.ts
└── utils
    ├── formatter.ts
    └── types.ts
  • src/: Source code of the application.
    • app/: Next.js pages and API routes.
    • components/: Reusable React components.
    • config/: Configuration files, including environment variables.
    • hooks/: Custom React hooks, e.g., useCryptoData.ts for fetching cryptocurrency data.
    • lib/: Library code and utilities.
    • services/: Services for external API calls, e.g., api.service.ts for fetching data from Binance.
    • utils/: Utility functions and types, including types.ts for type definitions.
    • types/: TypeScript type definitions.
  • next.config.mjs: Next.js configuration file.
  • tailwind.config.ts: Tailwind CSS configuration.
  • tsconfig.json: TypeScript configuration.

Configuration

Environment variables are defined in .env.local and referenced in src/config/index.ts. These include:

  • NEXT_PUBLIC_BASE_API_URL: Base URL for the API.
  • NEXT_PUBLIC_BASE_WS_URL: Base URL for WebSockets.

Scripts

Defined in package.json, these scripts are used for development and production:

  • dev: Start the development server.
  • build: Build the application for production.
  • start: Start the production server.
  • lint: Lint the codebase using ESLint.

Deployment

The application is deployed to Vercel using the GitHub repository. Refer to the Next.js deployment documentation for more information.

Contributing

  1. Install ESLint and Prettier extensions in VS Code

  2. Create a new branch

git checkout -b new-feature
  1. Make changes to the code, test your changes and commit your changes
git commit -m "new-feature"
  1. Push your changes to the remote branch
git push -u origin new-feature
  1. Create a pull request on GitHub.

Dependencies

Contact

crypto-tracker's People

Contributors

kushadige avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.