Skip to content

localopensource/dataplatform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Upload and Detection Server

A lightweight C++ server that accepts file uploads via HTTP POST requests, detects the file type based on its binary signature (magic number), stores the file, and optionally parses CSV data for analysis and encoding.

Features

  • HTTP server with GET and POST support
  • File upload handling with MIME type detection
  • CSV parsing with DataFrame-style output
  • Label encoding and one-hot encoding of uploaded CSV data
  • Static file serving (e.g., index.html from ./public)
  • JSON-based API responses
  • Logging for info, warnings, and errors

Build Instructions

Prerequisites

  • C++17 compatible compiler
  • CMake 3.10 or newer
  • Windows platform (uses WinSock)

Steps

git clone https://github.com/alfred7070/dataplatform.git
cd dataplatform
mkdir build && cd build
cmake ..
cmake --build .

Running the server

  • ./dataplatform

Sample response

  "status": "file saved",
  "filename": "./uploads/csv/upload_0.csv",
  "size": 1234

About

A scalable data platform for ingesting, processing, and analyzing structured and unstructured data. Built with modern data engineering tools to enable reliable pipelines, efficient storage, and actionable insights for downstream analytics and machine learning applications.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors