Hi everyone, beginner programmer and web developer here.In day to day life, I've used many websites which I can only think of labelling as 'websites as a file manipulation service'. For example, the first web sites that come up when you google 'convert pdf to html' or 'crop/resize photo online' or 'extract subset of pages from pdf'. Mostly, these web sites make you upload your input file, then their backend processes it, and then gives you the output file(s) to download.Now I'd like to create such a website myself, for use by others at my workplace - specifically to convert their rotas/timetables into csvs to import into google calendar. They would upload their rotas (excel/csv files), then the website backend would process it using python (with pandas), and then give them a csv to download so that they can import that into their google calendar.I already have a working python script which does exactly this. It uses numpy, pandas, xlrd, and datetime as dependenciesI'm confident with html, css, and javascriptI know the basics of creating web sites using nodejs, express, and mongo, but I am very much a nodejs beginner.I would be willing to subscribe to an ubuntu server through Digital Ocean, so that I have lots of flexibility over my backend (which I assume I would need to create this website)What other technologies/aspects of webdev would I need to learn/master to make such a website?I'm guessing I would need to implement some kind of security in case people upload malicious documents to the site. I have no idea how to go about thisI remember some months ago googling and trying to implement quite extensively just a simple 'upload a document to the server' and 'download a document from the server' on an express website, but I just kept running into answers which said along the lines of 'you can't do that for security reasons'. But then how do all these websites let you upload and download files to their backend? They have a simple 'upload document' box which brings a popup of all your computer files. And when you click 'download', it just automatically downloads to your download folder.I don't actually know how to run python scripts using nodejs, but it seems it's quite simple, you just have to use the 'child_process' package?I'd be interested in learning to create this website as professionally as possible, and as close as possible to all these mainstream websites that do similar things, so please be as detailed as you want in your answers.Very grateful for any answers. Thank you!
Submitted August 15, 2018 at 12:24PM by Vigoxin
No comments:
Post a Comment