GithubHelp home page GithubHelp logo

price-guardian-api's Introduction

Price Guardian

Automated price protection tracking.

Track prices and notify if price drops so you can get your well deserved refund (store price protection, visa price protection, etc.)

Examples:

TODO:

  • model out "item"
  • error handling (return json, jwt errors, random errors)
  • logging
  • refactor into cleaner file structure
  • add tests
  • frontend up and running locally
    • svelte (sveltekit?)
  • add item pagination
  • how to turn item PATCH into a partial update?
  • add price monitoring
    • amazon first, or do they not have a policy?
  • model out a price protection policy, allow it to be global (credit card or merchant level) and then applied to specific items (purchased with)
  • user / auth system
    • add email confirmation
    • reset password flow
    • add 2FA
    • add oauth signup / login (is amazon possible?? lookup popular options)
  • items should be able to have multiple price protection policies
  • deploy backend
  • deploy frontend

Setup Instructions

Instructions are for a MacOS environment (M1 arm)

Install Go

Follow instructions here: https://go.dev/doc/install

Install air

Air is for hot reloading.

Follow instructions here: https://github.com/cosmtrek/air#installation

Database setup

  1. Install Postgresql and the migration cli:
➤ brew install postgres golang-migrate
  1. Create database
➤ createdb price-guardian
  1. Run migrations
➤ migrate -path migrations -database pgx://localhost:5432/price-guardian\?sslmode=disable up
  1. Create a mgiration
➤ migrate create -ext sql NAME

Compile and Run

Run Locally w/ hot reloading:

➤ air

Release Build

price-guardian-api's People

Watchers

 avatar  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.