metikular / coupon-store Goto Github PK
View Code? Open in Web Editor NEWA home for all your coupons and loyalty cards. https://coupon.metikular.ch
License: GNU Affero General Public License v3.0
A home for all your coupons and loyalty cards. https://coupon.metikular.ch
License: GNU Affero General Public License v3.0
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.
Currently we input the code manually. It would be nice to be able to scan the bar code using an image (or camera on mobile device).
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?
Is it possible to add SSO support and benefit from seamless on-and-offboarding/role change and centralized identites. Thanks!
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
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!
The example docker compose doesn't seem to work. Is the image available on docker hub? I can't seem to find it.
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.