Skip to content

Repository files navigation

📒 Index

🔰 About The Project

This is streamlined, multi-page web application that tracks and displays the real-time prices of a small set of commodities.

🪛 Built With

This project is built using the following technologies:

Explanation of library choices
  • Vite was selected as the build tool for its high performance and fast rebuild times. Vite achieves rapid development by using ES Modules for quick dependency loading.

  • TypeScript was used to provide static typing, enhancing code reliability and reducing errors during development. TypeScript seamlessly integrates with React, making code development and refactoring easier.

  • The styled-components library was chosen for styling React components. It allows writing CSS within JavaScript files, providing better style isolation and increasing component reusability.

  • React Router was chosen for routing within the application. This library offers convenient management of routes and application state, enabling the creation of SPAs with multiple pages and transitions between them without page reloads.

  • Zustand was selected for state management within the application. It offers a simple API for creating global state with minimal boilerplate and efficiently manages state in React applications.

☝️ Requirements

To install and run this project, you need:

  • Node.js version 18.20 or higher
  • Yarn version 4 or higher

🛠️ Installation

If you would like to download the code and try it for yourself:

  1. Clone the repository:
    git clone https://github.com/azad-source/m2-market-app.git
  2. Install Yarn packages:
    yarn --frozen-lockfile
  3. Add a .env file to the root of the project with the following variables:
    VITE_KRAKEN_REST_API_URL="https://api.kraken.com"
    VITE_KRAKEN_API_KEY=*YourApiKey*
    VITE_KRAKEN_API_SECRET=*YourApiSecret*
    VITE_KRAKEN_WEBSOCKET_API_URL="wss://ws.kraken.com"
    The data is sourced from the trading platform provided by Kraken. You need to register on the platform, create an API key, and insert the received key and secret into the variables in the .env file

🧲 Usage

  1. Start in development mode:

    yarn dev
    
  2. Run the tests:

    yarn test
    

📜 License

M2-Market-App is MIT licensed.

📭 Contact

E-mail: azad.63.mamedov@gmail.com

Linkedin: https://www.linkedin.com/in/azad-mamedov/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages