init commit

This commit is contained in:
2022-04-26 13:03:02 -05:00
commit 8e65dcb06d
8 changed files with 1144 additions and 0 deletions

16
app.js Normal file
View File

@@ -0,0 +1,16 @@
const fs = require('fs');
const http = require('http');
http.createServer((req, res) => {
res.write("Server is active.");
res.end();
}).listen(8080);
const spawn = require('child_process').spawn;
const read_pdf = spawn('python', ['./parse_text/read_pdf.py']);
read_pdf.stdout.on('data', (data) => {
fs.write('./recipe_text/caught.txt', 'caught', err => {
if (err) console.log(err);
});
});