Skip to content

scottbateman/simple-csv-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-csv-server

A simple server for storing posted csv data to a sqlite3 db.

What it does

A simple server that just accepts text/plain posted data in a comma seprated format. Strings must be quoted. Has post end points based on the individual table names.

Configuring

Simply edit config.js providing the appropriate data table details.

Install and Run

  • Clone this repo

  • To install dependencies npm install

  • To run the server npm start

Testing

Use this curl command to test

curl -d "'column1 text','column2 text',3" -H"Content-Type:text/plain" http://127.0.0.1:9666/TableName

TODO

Add some security to prevent SQL injection.

About

A simple server for storing posted csv data to a sqlite3 db.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published