Submission for Swym Build Round
I am building a URL Masking App.
- Clone the project using
git clone
- Open it in VS code or any other editor and run
npm install
in the terminal (to install the dependencies). - Type
npm start
in the terminal to start the server. - This should start the server, then navigate to the browser and type in
http://localhost:5000/
. This should display the index.html file. - Before trying to download the CSV, make sure that you click on fetch.
- The user uploads a CSV of the urls. Each url is in the same column but on a new line.
- In javascript I take the CSV, parse it and then send it to the backend as an array in req.body.
- The URL's are taken one by one in the server and then a mask is generated and stored in the mongoDB database.
- When the user clicks on the fetch button the data is fetched from the mongodb data base and displayed in a table.
- When the user clicks on the download button it downloads as a CSV.