rahulkadamid / ecommerce Goto Github PK
View Code? Open in Web Editor NEWEcommerce web application using Angular | Node.js | Express.js | MongoDB
Ecommerce web application using Angular | Node.js | Express.js | MongoDB
Hello Sir,
My server and database is running fine but I am not able to show the products. The product API is giving 200 with empty result as follows:
success: true, message: "category", products: [], totalProducts: 0, pages: 0}
message: "category"
pages: 0
products: []
success: true
totalProducts: 0
}
I searched in the router files but there is no api to post new product in collection. Please Help.
Hi ,
I tried to replicate your application by using the same DB data using get requests and luckily i got all your data dump using get request. When i try to replicate the same DB instance in my local, I'm getting the below error
"[2:37:04 AM] [Algolia-sync] -> Error -> { CastError: Cast to ObjectId failed for value "true" at path "_id" for model "User"
I assume this is a type mismatch error , but i do want to understand why this error when the same data is used in both our applications .
Please reply at the earliest.
Attached is the data files which i have extracted using get request from the DB to know the schema.
server is not running. It will throw this error:
D:\Node.js Practice\test\Ecommerce-master\server>node server.js
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'async'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (D:\Node.js Practice\test\Ecommerce-master\server\routes\main.js:5:15)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (D:\Node.js Practice\test\Ecommerce-master\server\server.js:30:20)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
AccessDenied
Access Denied
B0ED41076086F3CA
G8R0jOF2cYx4DpmpiavFvgkLYWtFjIR8hCMenP1adYrCRdFIMGvgu5zw9kB6a+KtIYXMVtdkdK0=
this error is coming when i'm opening the image in new tab?
Angular component wont render and an error is thrown with error 0.
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.