Giter VIP home page Giter VIP logo

coupon-store's People

Contributors

dependabot[bot] avatar phylor avatar schklom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

coupon-store's Issues

Persistent Storage

How does this application persist storage? Normally a doctor image has a volume parameter that specifies where the data should be stored. If there is a database container included like this one then the database files would be in the volume storage.

Add version number to footer

It would be nice to be able to see the coupon-store version number in the frontend (maybe on the right part of the footer?) something like:
image

More barcode types?

My loyalty cards aren't supported by this - I have a couple 12 digit UPC codes and a PDF417 code I don't know the number to (but could maybe find using a separate barcode scanner.

Would there be a way to support these kinds of barcodes, or have pictures of barcodes that aren't supported so I'd be able to add all my cards?

[ARM] Unable to start / deploy the container

Hi,

I've tried to deploy using docker compose (both SQLite and PostgreSQL versions) but seems the container is not starting correctly.

For both versions, the container starts but in the logs I receive the following error
error

I'm trying on an arm64 Ubuntu 20.04 distro, could it be related?
I've not yet tried on an amd64 (the standard 64bit distro) but if that is the case I think it should be mentioned (as this would basically exclude any deployments on Raspberry or other arm systems).

Also, but maybe this is just because I haven't yet got it to work, on which port should it respond?
The standard http (80)? Some custom port?

Thanks!

Docker Hub Image

The example docker compose doesn't seem to work. Is the image available on docker hub? I can't seem to find it.

Handle spaces in code

Currently if a space is added to a code that is set as a barcode it results in an error. This makes it impossible to view or remove the code since it is saved, but each time i try to open the code, the error is displayed.

We're sorry, but something went wrong. 
If you are the application owner check the logs for more information.

Server logs show:

I, [2022-09-30T13:34:43.546708 #1]  INFO -- : [c6148abb-59d9-4a0c-a09b-01d8d152cca6] Processing by CouponsController#update as HTML

I, [2022-09-30T13:34:43.546750 #1]  INFO -- : [c6148abb-59d9-4a0c-a09b-01d8d152cca6]   Parameters: {"authenticity_token"=>"[FILTERED]", "coupon"=>{"code"=>"FFG ", "barcode_type"=>"ean_13", "store"=>"", "description"=>"", "valid_until"=>""}, "commit"=>"Update", "locale"=>"en", "id"=>"2"}

I, [2022-09-30T13:34:43.553338 #1]  INFO -- : [c6148abb-59d9-4a0c-a09b-01d8d152cca6] Redirected to https://couponstore.mydomain.com/en/coupons/2

I, [2022-09-30T13:34:43.553493 #1]  INFO -- : [c6148abb-59d9-4a0c-a09b-01d8d152cca6] Completed 302 Found in 7ms (ActiveRecord: 2.9ms | Allocations: 1999)

I, [2022-09-30T13:34:43.682457 #1]  INFO -- : [8516e9ef-fb56-46f5-9e81-6e795bd86359] Started GET "/en/coupons/2" for 74.67.79.83 at 2022-09-30 13:34:43 +0000

I, [2022-09-30T13:34:43.682979 #1]  INFO -- : [8516e9ef-fb56-46f5-9e81-6e795bd86359] Processing by CouponsController#show as HTML

I, [2022-09-30T13:34:43.683020 #1]  INFO -- : [8516e9ef-fb56-46f5-9e81-6e795bd86359]   Parameters: {"locale"=>"en", "id"=>"2"}

I, [2022-09-30T13:34:43.687171 #1]  INFO -- : [8516e9ef-fb56-46f5-9e81-6e795bd86359]   Rendered coupons/show.html.haml within layouts/application (Duration: 1.2ms | Allocations: 547)

I, [2022-09-30T13:34:43.687249 #1]  INFO -- : [8516e9ef-fb56-46f5-9e81-6e795bd86359]   Rendered layout layouts/application.html.haml (Duration: 1.3ms | Allocations: 590)

I, [2022-09-30T13:34:43.687421 #1]  INFO -- : [8516e9ef-fb56-46f5-9e81-6e795bd86359] Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.3ms | Allocations: 1829)

F, [2022-09-30T13:34:43.688581 #1] FATAL -- : [8516e9ef-fb56-46f5-9e81-6e795bd86359]   

[8516e9ef-fb56-46f5-9e81-6e795bd86359] ActionView::Template::Error (data not valid):

[8516e9ef-fb56-46f5-9e81-6e795bd86359]     15:     = link_to coupons_path do

[8516e9ef-fb56-46f5-9e81-6e795bd86359]     16:       = heroicon :x, options: {class: 'w-6 h-6'}

[8516e9ef-fb56-46f5-9e81-6e795bd86359]     17: 

[8516e9ef-fb56-46f5-9e81-6e795bd86359]     18: .barcode.mt-10.flex.justify-center= barcode_svg(@coupon.code, @coupon.barcode_type)

[8516e9ef-fb56-46f5-9e81-6e795bd86359]     19: 

[8516e9ef-fb56-46f5-9e81-6e795bd86359]     20: - content_for :footer do

[8516e9ef-fb56-46f5-9e81-6e795bd86359]     21:   .flex.flex-col

[8516e9ef-fb56-46f5-9e81-6e795bd86359]   

[8516e9ef-fb56-46f5-9e81-6e795bd86359] app/helpers/barcode_helper.rb:12:in `new'

[8516e9ef-fb56-46f5-9e81-6e795bd86359] app/helpers/barcode_helper.rb:12:in `barcode_svg'

[8516e9ef-fb56-46f5-9e81-6e795bd86359] app/views/coupons/show.html.haml:18

[8516e9ef-fb56-46f5-9e81-6e795bd86359] app/controllers/application_controller.rb:10:in `switch_locale'

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.