GithubHelp home page GithubHelp logo

dewanshdt / amazon-price-checker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benakehurst/amazon-price-checker

0.0 0.0 0.0 3.08 MB

A Mongo Express Ionic Node app to track prices on amazon ๐Ÿ’ธ

Home Page: https://price-tracker-49cfd.web.app/

JavaScript 50.00% TypeScript 35.87% HTML 10.53% SCSS 3.60%

amazon-price-checker's Introduction

Amazon Price Checker

What is this project?

The Amazon price checker is a full stack app, with the backend and server built with Nodejs/Express and Mongodb. For the client side, I used the Ionic framework (Angular version) to build a PWA, but with option to turn the client in to a full native iOS or Android app.

The purpose of the project is to allow a user to add items from Amazon to a list and to have the prices of that item tracked on the server. When an item hits a target buying price set by the user, the user will receive an email with a link to the item. Currently, the server will check the price every 6 hours, but that can be customised.

The prices for products on Amazon are gained by using Puppeteer.

Running the Project

Prerequisites

Nice to have:

Installation

Clone the repo to your local machine with the command:

git clone https://github.com/benAkehurst/amazon-price-checker.git

Server

  1. In the root folder create a .env file and add the following items. The .env is used to send an email to the user if the target price is hit. To change the settings on a Gmail account to allow the sending of email from a node app, go here.
GMAIL_LOGIN=<A Gmail login>
GMAIL_PASSWORD=<The Gmail password>
  1. Run the npm i command in the root server file to install the node_modules.

  2. In a seperate terminal window run mongod to run Mongodb locally.

  3. In the server terminal window, run npm run start. This will run nodemon and keep the server running, and restart it when making a changes.

  4. Now consult the readme for the server for the routes and use postman to check the server is running and responding to requests.

Client

  1. Enter the client folder, and then the apt subfolder.

  2. Run npm i to install the node_modules.

  3. Run ionic serve to serve the client.

Deploying

If you want to deploy the project, I have utalied 3 cloud services to do this.

  • Datbase - I used mlad and replace the local db loacation in the DB settings in server.js

  • Server - I use Heroku. To deploy there you need to change the start script in the package.json to node server.js for Heroku. You will also need to use this package on Heroku to get Puppeteer to work.

  • Client - I use Firebase as a static host, and follow these instructions to host and depoly the client --> Ionic Deploy Docs

FAQ's

  • If you have question or suggestion, please open an issue or a PR.

amazon-price-checker's People

Contributors

benakehurst avatar benyoobic avatar dependabot[bot] 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.