A group of websites built to be scraped by a web-scraper.
This project is built using NodeJS with the following modules:
- ExpressJS as the back-end and router.
- StandardJS for linting and formatting (along with the StandardJS extension in VS Code).
- Bulma CSS framework for designing the webpages.
- npm-run-all to run multiple scripts easily.
- mongoose for running MongoDB queries.
- date-and-time for easier interfacing with Javascript date & time objects.
- capitalize for formatting MongoDB search queries
- Pull the project using git or download the zip and extract it to your workspace.
- Run the
npm install
command to install all the dependencies. - Run
npm start
command to start up the server. - Go to localhost:3000 on your browser to access the sites.
- The entry point to the app is
index.js
. It acts as the router and interface to the MongoDB database. /lib
contains helper functions forindex.js
- The
/public
folder contains folders for each webpage along with their respective CSS and Javascript files. - All the CSS files import the Bulma CSS files. Any other webpage specific formatting are to be done in their respective CSS files.
- The
/public/lib
folder contains CSS and JS files which are commonly used for all the webpages. The Bulma CSS file is loacted here for use in all the pages.