elibenjii / ecommerce-react Goto Github PK
View Code? Open in Web Editor NEWMERN fullstack ecommerce react/redux/node
MERN fullstack ecommerce react/redux/node
throw new TypeError('JwtStrategy requires a secret or key')
Unable to retrieve data from api url : api/productsdata
Already imported json data.
How do we import democollection.json to get a preview of the store? Thanks in advance!
I encountered an error while working on a project located at 'C:\Users\HP\Downloads\ecommerce-react-master\ecommerce-react-master\client\node_modules\react-chartjs-2\es'. The error message states: "Module not found: Can't resolve 'chart.js'". This seems to be a problem with resolving the 'chart.js' dependency within the 'react-chartjs-2' module.
What are the license details of this project?
In the index.js file, there is an incorrect file path being used to import the configuration file.
Currently, it is importing the configuration file as follows:
const config = require('../config.js');
However, it should be importing the configuration file using the proper relative path:
const config = require('./config.js');
Used this code in terminal : node index.js & npm start
is running without errors.
host/api response is like :
Not Found
The requested URL was not found on this server.
Same with admin, its not running as well.
Hey,
I tried to import the database but had no luck so far.
Here is my config.js file
module.exports = {
secret: 'MY SECRET',
DB_URI_DEV: 'mongodb://localhost:27017/product',
DB_URI: 'mongodb://localhost:27017/product',
};
and in my MongoDB, I have a DB called product and inside I have two collections:
product and admins
but when I call the product API: http://localhost:5000/api/productsdata
I always get an empty array as result, any idea why?
Specifically, the error message indicates :
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR! peer react@"~0.14.8 || ^15.5.0" from [email protected]
npm ERR! node_modules/react-paypal-express-checkout
npm ERR! react-paypal-express-checkout@"^1.0.5" from the root project
Possible Solution:
Instead of directly using npm install, it is recommended to use npm install react-paypal-express-checkout --legacy-peer-deps. This bypasses the peer dependency check and allows the package to be installed successfully.
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.