Git Product home page Git Product logo

gns's Introduction

GNS

#GAS Scrapper

#BACKEND

Gas Scraper Backend The Gas Scraper Backend is a Node.js application that utilizes Puppeteer to scrape Med Gas prices from the Snowtrace website and stores the data in a MongoDB database.

Prerequisites

Node.js and npm: Download and Install Node.js MongoDB: Download and Install MongoDB

Installation

Clone the repository: git clone https://github.com/your-username/gas-scraper-backend.git

Navigate to the backend directory:

cd gas-scraper-backend

Install dependencies: npm install

Configuration

Create a .env file in the backend directory with the following content: env MONGODB_URI=your-mongodb-connection-string

Replace your-mongodb-connection-string with your actual MongoDB connection string.

Usage Start the backend server:

npm start

The scraper will run once and save the scraped data to the MongoDB database.

Folder Structure models: MongoDB schema and models routes: Express routes GasScraper.js: Med Gas price scraping logic index.js: Express server configuration

#FRONTEND

Gas Scraper Frontend The Gas Scraper Frontend is a React application that fetches and displays Med Gas prices chronologically. It includes a table to show gas prices and a Chart.js Line chart to visualize the prices over time.

Prerequisites

Node.js and npm: Download and Install Node.js Installation

Clone the repository: git clone https://github.com/your-username/gas-scraper-frontend.git

Navigate to the frontend directory: cd gas-scraper-frontend

Install dependencies: npm install

Usage

Start the frontend development server:

npm start

Access the application in your browser at http://localhost:3000.

Dependencies

axios: HTTP client for making requests to the backend react-spinners: Library for adding loading spinners to React components

gns's People

Contributors

koladebalogun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.