Git Product home page Git Product logo

eshop's Introduction

eshop's People

Contributors

gabipetrovay avatar molda avatar patchwerkqwer avatar petersirka avatar weidaweb 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  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  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

eshop's Issues

Unique Product URL Conflict

If two different products contain the same string, e.g. "My Cool Product", it will generate same URL for both products such as:
http://localhost:8000/product/my-cool-product/

I think we should add a integer (or hashid) at the end uf URL after checking if same string already exists to avoid this conflict. Or something like that. Unfortunately, I don't know how to do this and it just caught my attention after playing around with it.

Sign up account not saving

User sign up is not working, the google sign up is working. I receive a notification regarding the user signing up, however it not adding them onto the user list and they are not being able to sign up it says user not found.

When i use E-Shop With mongodb it refuse the connection due to -process out of memory

C:\xampp\htdocs\eshop-master\eshop-mongodb>node debug.js

----------------------------------------------------> PID: 5452 (v3.0)

PID : 1872
Node.js : v4.4.7

Total.js : v2.0.1

Name : E-shop
Version : 6.0.0
Author : Total.js Labs
Date : 2016-08-15 12:53:40

Mode : debug

http://127.0.0.1:8000/

<--- Last few GCs --->

25200 ms: Scavenge 968.6 (1010.2) -> 968.6 (1010.2) MB, 0.1 / 0 ms (+ 2.0 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
25773 ms: Mark-sweep 968.6 (1010.2) -> 585.4 (623.7) MB, 573.4 / 0 ms (+ 2.0 ms in 2 steps since start of marking, biggest step 2.0 ms) [last resort gc].
26256 ms: Mark-sweep 585.4 (623.7) -> 585.4 (623.7) MB, 482.7 / 0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 000001B46DCB4639
2: /* anonymous */ [C:\xampp\htdocs\eshop-master\eshop-mongodb\models\pages.js:~397] [pc=000000DCC2F3DDDA] (this=0000015404E59F29 <a SchemaBuilderEntity with map 00000283295B7CD1>,error=000
001B46DC084B9 <an ErrorBuilder with map 00000283295AB049>,model=000001B46DC041B9 ,url=000002CC55A3A4D9 <String[1]: />,callback=000001B46DC085C9 <JS Function (SharedFunctionInfo 00000
328E5AF53...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

C:\xampp\htdocs\eshop-master\eshop-mongodb>

It seems there is a missing requirement "gm"

Hello !
I'm trying out the eshop application and it shows errors trying to execute "gm" probably graphics-magic ?

c/A_frameworks/totaljs/eshop/tmp/images-small-1611262223Tpu112.jpg +profile "*" -filter "Box" -thumbnail "200x150" -limit memory 450 -limit map 900 -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 /home/mingo/dev/c/A_frameworks/totaljs/eshop/tmp/images-small-1611262223Tpu112.jpg
/bin/sh: 1: gm: not found
 (http://127.0.0.1:8000/images/small/1611262223Tpu112.jpg) Error: Command failed: gm -convert /home/mingo/dev/c/A_frameworks/totaljs/eshop/tmp/images-small-1611262223Tpu112.jpg +profile "*" -filter "Box" -thumbnail "200x150" -limit memory 450 -limit map 900 -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 /home/mingo/dev/c/A_frameworks/totaljs/eshop/tmp/images-small-1611262223Tpu112.jpg
/bin/sh: 1: gm: not found

    at ChildProcess.exithandler (child_process.js:211:12)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:885:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:501:12)

Sizes and Quantity

I find that this should be somewhat standard input in the manager panel.

Custom sizes in the Schema, could be something like key value object:

{ XS: 5, 
S: 10, 
M: 16 }

Is that doable? I am not that famillar with NoSQL emdbedded nor ways to describe schemas via NEWSCHEMA, can I do something like object array:

Products.define('sizes', '[Object]');

And integrate it with manager easily?

Alternatives to memory database

Hi, is there the possibility to use a mysql or mongodb database? Are there some docs or have you some suggestions about that?

After Instalation.

So I installed, i wont to test it and decide. affter installation runing with some litle bugs.
Here is a console.log

` ### D:\node\home\eshop-master>npm install
[email protected] D:\node\home\eshop-master
+-- [email protected]
-- [email protected]

npm WARN [email protected] No repository field.

D:\node\home\eshop-master>node debug.js
---------------------------------> PID: 5952 (v8.0)

PID : 5884
Node.js : v6.9.5
Total.js : v2.4.0
OS : win32 6.1.7601

Name : E-shop
Version : 8.0.0
Author : Peter Širka
Date : 2017-02-08 21:12:09
Mode : debug

http://127.0.0.1:8000/

======= 2017-02-08 21:12:41: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611262318Tufbw9.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611262318Tufbw9.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611262318Tufbw9.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161126231
8Tufbw9.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611262318Tufbw9.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)

======= 2017-02-08 21:12:41: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611262202Tkvs19.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611262202Tkvs19.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611262202Tkvs19.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161126220
2Tkvs19.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611262202Tkvs19.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

======= 2017-02-08 21:12:41: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611262232T4433i.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611262232T4433i.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611262232T4433i.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161126223
2T4433i.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611262232T4433i.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)

======= 2017-02-08 21:12:41: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611262223Tpu112.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611262223Tpu112.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611262223Tpu112.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161126222
3Tpu112.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611262223Tpu112.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)

======= 2017-02-08 21:12:42: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611262252Tzj817.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611262252Tzj817.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611262252Tzj817.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161126225
2Tzj817.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611262252Tzj817.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)

======= 2017-02-08 21:12:42: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611262300Tonf16.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611262300Tonf16.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611262300Tonf16.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161126230
0Tonf16.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611262300Tonf16.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)

======= 2017-02-08 21:12:42: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611262242T1d7q6.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611262242T1d7q6.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611262242T1d7q6.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161126224
2T1d7q6.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611262242T1d7q6.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:498:12)

======= 2017-02-08 21:12:42: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611262325Tu4tke.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611262325Tu4tke.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611262325Tu4tke.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161126232
5Tu4tke.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611262325Tu4tke.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

======= 2017-02-08 21:12:43: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611270911Tm8m2j.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611270911Tm8m2j.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611270911Tm8m2j.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161127091
1Tm8m2j.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611270911Tm8m2j.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

======= 2017-02-08 21:12:43: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611262359Ta2v65.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611262359Ta2v65.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611262359Ta2v65.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161126235
9Ta2v65.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611262359Ta2v65.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

======= 2017-02-08 21:12:43: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611262313T8tbyl.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611262313T8tbyl.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611262313T8tbyl.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161126231
3T8tbyl.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611262313T8tbyl.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

======= 2017-02-08 21:12:43: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611270001Tb1gpe.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611270001Tb1gpe.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611270001Tb1gpe.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161127000
1Tb1gpe.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611270001Tb1gpe.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

======= 2017-02-08 21:13:08: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-1611271007Twyhfp.jpg +profile "" -filt
er "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\node\home\eshop-master\tmp\images
-small-1611271007Twyhfp.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/small/1611271007Twyhfp.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-small-161127100
7Twyhfp.jpg +profile "
" -filter "Box" -thumbnail "200x150" -background "white" -extent 0x0 -gravity "Center" -extent "200x150" -quality 90 D:\nod
e\home\eshop-master\tmp\images-small-1611271007Twyhfp.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

======= 2017-02-08 21:13:11: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-large-1611270001Tjn3uv.jpg +profile "" -filt
er "Box" -thumbnail "500x300" -background "white" -extent 0x0 -gravity "Center" -extent "500x300" -quality 90 D:\node\home\eshop-master\tmp\images
-large-1611270001Tjn3uv.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/large/1611270001Tjn3uv.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-large-161127000
1Tjn3uv.jpg +profile "
" -filter "Box" -thumbnail "500x300" -background "white" -extent 0x0 -gravity "Center" -extent "500x300" -quality 90 D:\nod
e\home\eshop-master\tmp\images-large-1611270001Tjn3uv.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

======= 2017-02-08 21:13:11: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-large-1611270001Tb1gpe.jpg +profile "" -filt
er "Box" -thumbnail "500x300" -background "white" -extent 0x0 -gravity "Center" -extent "500x300" -quality 90 D:\node\home\eshop-master\tmp\images
-large-1611270001Tb1gpe.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/large/1611270001Tb1gpe.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-large-161127000
1Tb1gpe.jpg +profile "
" -filter "Box" -thumbnail "500x300" -background "white" -extent 0x0 -gravity "Center" -extent "500x300" -quality 90 D:\nod
e\home\eshop-master\tmp\images-large-1611270001Tb1gpe.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

======= 2017-02-08 21:13:12: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-large-1611270001Ttcy13.jpg +profile "" -filt
er "Box" -thumbnail "500x300" -background "white" -extent 0x0 -gravity "Center" -extent "500x300" -quality 90 D:\node\home\eshop-master\tmp\images
-large-1611270001Ttcy13.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/large/1611270001Ttcy13.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-large-161127000
1Ttcy13.jpg +profile "
" -filter "Box" -thumbnail "500x300" -background "white" -extent 0x0 -gravity "Center" -extent "500x300" -quality 90 D:\nod
e\home\eshop-master\tmp\images-large-1611270001Ttcy13.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

======= 2017-02-08 21:13:12: Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-large-1611270001T1ap91.jpg +profile "" -filt
er "Box" -thumbnail "500x300" -background "white" -extent 0x0 -gravity "Center" -extent "500x300" -quality 90 D:\node\home\eshop-master\tmp\images
-large-1611270001T1ap91.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.
(http://127.0.0.1:8000/images/large/1611270001T1ap91.jpg) Error: Command failed: gm -convert D:\node\home\eshop-master\tmp\images-large-161127000
1T1ap91.jpg +profile "
" -filter "Box" -thumbnail "500x300" -background "white" -extent 0x0 -gravity "Center" -extent "500x300" -quality 90 D:\nod
e\home\eshop-master\tmp\images-large-1611270001T1ap91.jpg
'gm' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

`

Found two critical types of security vulnerabilities

Recently google ads rejected the website based on eshop due to the presence of malware.
I have tested https://eshop.totaljs.com/ using Burp Suite and it finds two major vulnerabilities:

  1. JavaScript injection (DOM-based)
  2. Cross-site scripting (DOM-based)

Can someone provide an explanation for a code fix for these vulnerabilities?
See the screenshots attached below.

  • List of all issues
    all

  • Requests
    1
    2
    3
    4
    5

Cannot send emails

I am using Sparkpost email provider and I don't have any success setup shop to work with this provider.
Maybe my settings in application are not correct.
Can you, please update me about email settings in documentation or how it setup properly?

Bottomline
In any case it is great application.
Working on AWS as well.

Issue with ordering

Hey, straight after trying to order i am getting a 404 and error:

======= 2015-11-30 01:04:34: TypeError: Cannot read property 'secure' of undefined TypeError: Cannot read property 'secure' of undefined

I have filled config file and settings at manager, but with no furhter luck. Any ideas why this happens?

Where are the docs for eshop v8.0.0?

Whenever I search for eshop docs, all i see is docs for v10.0.0. Where are the docs for the free version. Secondly, how to register a template in UI Setting? There are no Ui setting in the CMS.
How to create themes? Can you please list down how to make themes in step by step method?

Multi-select Product

On this page

screen shot 2017-03-05 at 1 19 19 pm

Would be great if we could select multiple products and mass delete

multi language support

Hi I'm trying setup multi language support, i downloaded the sample eshop 8.0.0,
i added my delegate to /definitions/localization.js
F.onLocale = function(req) { if (req.query.language === 'en') return 'en'; return 'hu'; };
after i run this code: totaljs --translate, after i copied translation.resource to the /resources directory and i rename it en.resource and make another copy hu.resource file
localhost:8000/ i'm getting 404 page not found
total.js version = 2.6.2
If i remove F.onLocale function the application running perfectly.
any idea? what is my wrong in my code? Thanks.

Problem with Changing theme w.r.t ADD TO CART function

I am changing the template of the eshop. And I am currently having problems adding products to the cart. When i click the add to cart button, it successfully calls the $('.details-buy').on(click... function in the default.js file, however it fails to execute the FIND("checkout"). I've added little snippets of the code below. Any help would be appreciated.

@(The product @{model.name} is in your shopping cart) .
@(Order it now)
  • Add to cart - @{currency(model.price)}@{if model.priceold > model.price} @{currency(model.priceold)}@{fi}

    That's above code is for Adding the cart but during the process i get this error on the browser console.

    Uncaught TypeError: Cannot read property 'append' of undefined
    at HTMLButtonElement. (default.js:29)
    at HTMLButtonElement.dispatch (jquery-3.1.1.min.js:3)
    at HTMLButtonElement.q.handle (jquery-3.1.1.min.js:3)

    It's unable to get any data from FIND('checkout') function.

    var buy = $('.detail-buy').on('click', function() {
    alert("something happening");
    var el = $(this);
    var price = parseFloat(el.attr('data-price'));
    var id = el.attr('data-id');
    //alert(price+" ,"+id);
    var checkout = FIND('checkout');
    checkout.append(id, price, 1);

Please add support for other databases

I like all your products. I would like to go with the store in production, but your database does not have enough replication. It would be great to see the couchbase or cockrouchdb(postgresql), perhaps through dmbs. Maybe in the form of premium packages?

can't set custom post and custom ip

In release.js i set custom port and ip:

options.port = process.env.OPENSHIFT_NODEJS_PORT || 8080;
options.ip = process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1';

but it not work for me.

Order-status email not sending

Hi,
so i was trying to respond to a client but would recieve empty email. I found the problem was due to this little code in the order-status.html

@(Created)
@{model.datecreated.format('@(yyyy-MM-dd)')}
Debug said format was not recognised or something on those lines. Is there any solution around this. Apart from just removing that code.

I am using total.js v2.4.0

When I change locale some page not found

Hi! Thank you for great app. I trying translate app to my language. When I change locale by this code
F.onLocale = function (req) { return "vi"; }

But when I try access to homepage, privacy, contact those will be not found. I can only access to shop, blogs, account.

I used example database.

I uploaded the application to heroku server, however I can't make it work, I don't know how to configure the environment variables that the application requires in heroku

I uploaded the application to heroku server, however I can't make it work, I don't know how to configure the environment variables that the application requires in heroku

this is my Procfile file
web: node debug.js

this is my package.json
{ "name": "Eshop", "description": "A simple and powerful Eshop solution written in Total.js / Node.js.", "version": "11.0.0", "main": "release.js", "repository": { "type": "git", "url": "https://github.com/totaljs/eshop" }, "dependencies": { "express": "^4.17.1", "paypal-express-checkout": "^1.6.3", "total.js": "^3.4.4" }, "scripts": { "start": "node debug.js", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [ "eshop", "ecommerce" ], "author": "Peter Širka", "license": "MIT" }

this is my debug.js

`// ===================================================
// FOR DEVELOPMENT
// Total.js - framework for Node.js platform
// https://www.totaljs.com
// ===================================================
//async function main(){
// await a
//}
var options = {};
options.port = 5000;

// options.ip = '127.0.0.1';
// options.port = parseInt(process.argv[2]);
// options.config = { name: 'Total.js' };
// options.sleep = 3000;
// options.inspector = 9229;
// options.watch = ['private'];

require('total.js/debug')(options);`

this is the error I get with the heroku logs command:

2020-07-18T21:09:46.897638+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2020-07-18T21:09:46.916891+00:00 heroku[web.1]: Stopping process with SIGKILL 2020-07-18T21:09:46.970044+00:00 heroku[web.1]: Process exited with status 137 2020-07-18T21:09:47.009886+00:00 heroku[web.1]: State changed from starting to crashed 2020-07-19T03:08:03.606474+00:00 heroku[web.1]: State changed from crashed to starting 2020-07-19T03:08:06.885322+00:00 heroku[web.1]: Starting process with command node debug.js 2020-07-19T03:08:09.299623+00:00 app[web.1]: > DEBUG PID: 4 (v3.4.4)

please help me! thank you

Using Mongoose

Hi,
I downloaded the sample project and I noticed that its all using the NOSQL module.
I need to convert this sample to work with MongoDB instead (preferably using the Mongoose connector) if that is possible.
What is the best approach to modify the existing code to work with Mongo? I saw the 2 mongo examples here on github but I'm not sure how to apply the same techniques on the sample eShop that I downloaded.

Please help as I am very new to this framework and I am very excited to get it to working with my database.
Also is it possible to use more than one database at the same time? Like using MongoDB and MySql in the same project?

Successfull payment redirection problem

Hi,
So i've been able to succesfully integrate a new theme around eshop. However when I do my payment, it successfully takes the payment and when being redirected it goes back to the checkout page and not the checkout-detail page showing confirmation of the payment. Do you know where i could have gone wrong??

what is page() function?

hello, I have a question about following code, from EShop premium.

I could not find the details of function ' self.page()' from documents.
what is the definition of this function 'page()' 5 variables meaning? or where is the source code path for this function? 

// Homepage
function view_homepage() {
	var self = this;
	// Increases the performance (1 minute cache)
	self.memorize('cache.homepage', '1 minute', DEBUG, function() {
		var options = {};
		options.max = 12;
		options.sort = '3';
		options.published = true;
		$QUERY('Product', options, (err, response) => self.page('/', 'index', response, false, true));
	});
}

Widget inclusion

My problem is that I want the client to have a front page customized of what he wants. Means that he needs some widgets there.

I know how to define widgets but how do I actually include them in code?

Example widget:

GETSCHEMA('Widget').addTransform('Featured Two', function(error, model, data, callback) {
    var options = {};
    options.max = 3;
    GETSCHEMA('Product').query(options, function(err, response) {

        if (err) {
            error.push(err);
            return callback();
        }

        var model = response.items.filter(function(e) {
            return e.category = 'Clothing';             
        });

        callback(F.view('eshop/partial-index', model, true));
    });
});

This defines schema for the widget, but that widget model data is never available in the partial. How do I do this? Could not find that in documentation.

translation

anyone know how to add translation?

I am willing to join TRANSLATION

problem with nosql tmp

Hi,
I have really bad problem with this error:

have error: Error: ENOENT: no such file or directory, rename '/www/www/eshop/databases/users.nosql-tmp' -> '/www/www/eshop/databases/users.nosql'

Variants/SKUs

Are there any plans to implement variants or similar functionality color/size/etc?

Category issue

Translated shop with localization guide in Russian.
When create or rename categories to russian language in CMS, it either becomes not selectable or transforms in empty part of url and doesn't work.

In this case category 'Колонки' transformed in 'n' in url
screen shot 2017-07-05 at 3 26 11 pm

gm convert: Memory allocation error [File exists]

I have tried to run project both on Windows and Linux (I thought it was the trouble with GraphicsMagick system), but I am getting the same errors

======= 2019-06-25 21:00:53: Error: Command failed: gm -convert '/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg' +profile '*' -limit map 900 -limit memory 450 -thumbnail '200x150' -filter 'Hamming' -extent 0x0 -background 'white' -gravity 'Center' -extent '200x150' -quality 90 '/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg'
gm convert: Memory allocation failed (/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg) [File exists].
 (http://localhost:8000/images/small/1611262202Tkvs19.jpg) Error: Command failed: gm -convert '/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg' +profile '*' -limit map 900 -limit memory 450 -thumbnail '200x150' -filter 'Hamming' -extent 0x0 -background 'white' -gravity 'Center' -extent '200x150' -quality 90 '/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg'
gm convert: Memory allocation failed (/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg) [File exists].
    at ChildProcess.exithandler (child_process.js:290:12)
    at ChildProcess.emit (events.js:200:13)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:200:13)
    at Pipe.<anonymous> (net.js:586:12)
======= 2019-06-25 21:01:19: Error: Command failed: gm -convert '/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg' +profile '*' -limit map 900 -limit memory 450 -thumbnail '200x150' -filter 'Hamming' -extent 0x0 -background 'white' -gravity 'Center' -extent '200x150' -quality 90 '/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg'
gm convert: Memory allocation failed (/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg) [File exists].
 (http://localhost:8000/images/small/1611262202Tkvs19.jpg) Error: Command failed: gm -convert '/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg' +profile '*' -limit map 900 -limit memory 450 -thumbnail '200x150' -filter 'Hamming' -extent 0x0 -background 'white' -gravity 'Center' -extent '200x150' -quality 90 '/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg'
gm convert: Memory allocation failed (/home/ubuntu/Downloads/gg/tmp/images-small-1611262202Tkvs19.jpg) [File exists].
    at ChildProcess.exithandler (child_process.js:290:12)
    at ChildProcess.emit (events.js:200:13)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
======= 2019-06-25 21:01:29: Error: Command failed: gm -convert '/home/ubuntu/Downloads/gg/tmp/images-small-1611271007Twyhfp.jpg' +profile '*' -limit map 900 -limit memory 450 -thumbnail '200x150' -filter 'Hamming' -extent 0x0 -background 'white' -gravity 'Center' -extent '200x150' -quality 90 '/home/ubuntu/Downloads/gg/tmp/images-small-1611271007Twyhfp.jpg'
gm convert: Memory allocation failed (/home/ubuntu/Downloads/gg/tmp/images-small-1611271007Twyhfp.jpg) [File exists].
 (http://localhost:8000/images/small/1611271007Twyhfp.jpg) Error: Command failed: gm -convert '/home/ubuntu/Downloads/gg/tmp/images-small-1611271007Twyhfp.jpg' +profile '*' -limit map 900 -limit memory 450 -thumbnail '200x150' -filter 'Hamming' -extent 0x0 -background 'white' -gravity 'Center' -extent '200x150' -quality 90 '/home/ubuntu/Downloads/gg/tmp/images-small-1611271007Twyhfp.jpg'
gm convert: Memory allocation failed (/home/ubuntu/Downloads/gg/tmp/images-small-1611271007Twyhfp.jpg) [File exists].
    at ChildProcess.exithandler (child_process.js:290:12)
    at ChildProcess.emit (events.js:200:13)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:200:13)
    at Pipe.<anonymous> (net.js:586:12)

What am I doing wrong?

Issue on uploading file on eshop-mongodb

Hi,
when I try to upload a file on admin space, I get this error

manager ---> TypeError: GridStore.writeFile is not a function (http://localhost:8000/manager/upload/) TypeError: GridStore.writeFile is not a function
    at Array.<anonymous> (/Users/macbookproretina13/Projects/data-exports/eshop-db/eshop-master/eshop-mongodb/controllers/manager.js:101:13)
    at Array.wait.Array.waitFor (/Users/macbookproretina13/Projects/data-exports/eshop-db/eshop-master/eshop-mongodb/node_modules/total.js/utils.js:4301:9)
    at Object.upload (/Users/macbookproretina13/Projects/data-exports/eshop-db/eshop-master/eshop-mongodb/controllers/manager.js:89:13)
    at Subscribe.doExecute (/Users/macbookproretina13/Projects/data-exports/eshop-db/eshop-master/eshop-mongodb/node_modules/total.js/index.js:9590:23)
    at Subscribe.execute (/Users/macbookproretina13/Projects/data-exports/eshop-db/eshop-master/eshop-mongodb/node_modules/total.js/index.js:9516:8)
    at Subscribe.doAuthorization (/Users/macbookproretina13/Projects/data-exports/eshop-db/eshop-master/eshop-mongodb/node_modules/total.js/index.js:9618:9)
    at /Users/macbookproretina13/Projects/data-exports/eshop-db/eshop-master/eshop-mongodb/node_modules/total.js/index.js:9543:9
    at F.onAuthorize (/Users/macbookproretina13/Projects/data-exports/eshop-db/eshop-master/eshop-mongodb/models/users.js:411:3)
    at Subscribe.prepare (/Users/macbookproretina13/Projects/data-exports/eshop-db/eshop-master/eshop-mongodb/node_modules/total.js/index.js:9530:3)
    at Subscribe.doEnd (/Users/macbookproretina13/Projects/data-exports/eshop-db/eshop-master/eshop-mongodb/node_modules/total.js/index.js:9669:8)

I use different Mongodb driver version but I get the same error all time.

Issue with manager dashboard

On my ubuntu server (cloud9 container), when i try to log into the manager dashboard, it throws the following:

====== 2015-11-18 20:25:40: manager :: All templates ---> TypeError: file.execute.call is not a function (http://MY-APP-ADDRESS-HERE) TypeError: file.execute.call is not a function
at Subscribe.doEndfile (/home/ubuntu/workspace/node_modules/total.js/index.js:8963:19)
at IncomingMessage. (/home/ubuntu/workspace/node_modules/total.js/index.js:8535:8)
at emitNone (events.js:67:13)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:903:12)
at doNTCallback2 (node.js:439:9)
at process._tickCallback (node.js:353:17)

On the other hand, the same very local version starts fine on my machine (MAC OS X), I can go through to the admin panel etc etc. Right now, on the server theres 500 header when i attempt to log in and its all im getting in the console.

The Mozilla Observatory reports eshop with F grade

The recent check performed by The Mozilla Observatory shows that https://eshop.totaljs.com/ has a low score with an F grade due to the implementation of the required headers.
image
A Helmet.js integration can be performed as an option.
image
It shows an A+ grade then, but the website becomes unusable and produces many errors after this integration (mostly because of using 'unsafe-eval' and 'unsafe-inline').

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.