Koinx

First Assignment continuation

This Project is designed to calculate the cost basis and net profit for cryptocurrency transactions along with number of Assets based on time stamp . It processes transaction data stored in a MongoDB database and generates detailed Trade Details. The project is built using Next.js, TypeScript, and MongoDB,Node js for the backend and it integrates file uploads with multer and authentication using NextAuth.

New users

Features

  • Asset Balance Calculation: Retrieve the balance of assets like BTC, MATIC, etc., at any specified timestamp.
  • Mongoose Integration: Uses Mongoose to connect to a MongoDB Atlas database.
  • CSV Data Import: Import transaction data from CSV files into the MongoDB database.

Prerequisites

  • Node.js: Make sure you have Node.js installed (v14.x or later).

  • MongoDB Atlas: This project uses a MongoDB Atlas cluster. Ensure you have a MongoDB Atlas account and cluster set up.

    Backend set up

Installation

  1. Clone the Repository:

    git clone https://github.com/ashish07-07/Koinx-report
    
  2. Install Dependencies:

    npm install
  3. Set Up Environment Variables: Create a .env file in the root directory and add the following:

    MONGODB_URI="your_mongodb_connection_string"
  4. Build the Project:

    npm run build
  5. Run the Project:

    npm start

data base

Databse snapshot

Users in Database

Usage

API Endpoint

![New users](./PUBLIC/image.jpg)