Code Monkey home page Code Monkey logo

vinlottis's Introduction

Vinlottis ๐Ÿพ

Build Status


Vinlottis is a home-brewed solution for wine-lottery.

Prerequisites

mongodb
nodejs
npm

Run dev

Since the backend and API runs separate from the Vue-on-save-compiler, when running the dev-server, the backend needs to be run separate

$ npm run dev
$ node server.js

Run prod

$ npm run build && node server.js

vinlottis's People

Contributors

kevinmidboe avatar adrianht avatar egiluggerud avatar kasperrt avatar greenkeeper[bot] avatar dependabot[bot] avatar guggerud avatar ingridvold avatar

Stargazers

Thomle avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

slideshow776

vinlottis's Issues

TypeScript

TypeScript is nice, but it will take a way large rewrite to get it working

Scrape vinmonopolet into elastic for autocomplete search of wine names

Idea

We want to have a autocomplete search field for wine names when searching for new wines to request. Vinmonopolet does not offer a good way to use their existing functionality for this. Make a job that scrapes all products and pushes them to a elasticdatabase.

Elastic chosen here for it's speed for free text search.

Todo

  • Create a /scripts/importVinmonopoletToElastic.js for scraping and updating elasticsearch.
  • Setup elastic configuration files for defining custom location and/or index name.
  • Frontend should gracefully disable querying autocomplete if elastic not set up (e.i. local development).

Populate db

Have a "migration" step for populating/initializing db with random data.

Setup wizard for new users & move config values to db

Move some of the config parameters to be db so we can dynamically set preferences like:

  • vipps number.
  • color profile.
  • lottery date & time.
  • notification provider.

Would also be nice to have a redirect to a setup/wizard page if these values are not yet defined.

Move toasts to be used as Vue plugins

image

Idea

Be able to call on toasts from anywhere with something like:

this.$notifications.info({
  title: "Title text",
  description: "Description if set",
  timeout: 3500,
  link: '[route to link to]'
})

Could register notification types as:notifications.error, .warning or with a type/color parameter.

Add and view recommended wines

Users can request a wine they want to be bought for a later lottery.

Users can recommend wines they enjoy or have won and want to be bought again.
Users whom are unsure what to buy each week have a page to check a recommendations page.

Antall vin som trekkes/er igjen

Under trekning ha en oversikt over hvor mange vin som totalt trekkes og progress pรฅ hvor mange som er blitt trukket.

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.