A web archiving machine using express
Eric Le, therealericle@gmail.com
Chrome
Fork and clone this repo to your local machine
Type these commands to get started:
- Follow this link to install Homebrew (
http://brew.sh/) if you don't have one brew install nodeif you haven't installed nodejsbrew install mysqlif you haven't installed mysqlnpm installnode dependencies- In a separate tab of terminal in a same directory, type in
mysql -u root < ./schema.sql - Finally, run
npm start - Go to
http://localhost:8080 - Enjoy using the app
- HTML, CSS, jQuery
- Node/Express
- MySQL/Sequelize
'/api/job'
post '/addjob' : Add a new job when user type in a new url post '/status' : Get a job status
I use Node and Express to run server and construct a RESTful API to allow user to queue up job request and request job status. Node and Express makes it easy to organize application into components and come with a lot of built-in, third-party middlewares such as url-parser, morgan and cors. I used Sequelize(an ORM layer for MySQL) to store queue jobs, their ID and status and allow user to check against the databases for status
On the front end, I use simple HTML and CSS to construct the view and input field. Because no data binding is necessary, I avoid using framework such as Angular or React.



