Comments (5)
@Lihaas @tommotaku Hello, in order to run the application there are a few environmental variables that you need to set (please see the run section in the readme file). After you have successfully added your MongoDB Atlas connection string you need to navigate to the "seedDB" folder and run "node category-seed.js" and "node product-seed.js", this is to fill your empty MongoDB Atlas database. I've just fixed the paths in the seedDB files so they should work just fine now.
After doing these steps the application should work.
from bestbags-nodejs-ecommerce.
@maryamaljanabi I think you need to update the readme file to change "npm category-seed.js" and "npm product-seed.js" to "node category-seed.js" and "node product-seed.js"
npm was not working but node command worked
from bestbags-nodejs-ecommerce.
this is because they have not handled the case if there are no categories or projects.
Now the solution is seed the database which is in seedDB directory also you may receive there an import error use const connectDB = require("../config/db");
instead of const connectDB = require("./config/db");
in category-seed.js
from bestbags-nodejs-ecommerce.
this is because they have not handled the case if there are no categories or projects.
Now the solution is seed the database which is in seedDB directory also you may receive there an import error use
const connectDB = require("../config/db");
instead ofconst connectDB = require("./config/db");
in category-seed.js
did but nothing is happened same error coming
from bestbags-nodejs-ecommerce.
@ezolboo Oh I meant node, sorry about the typo, I just updated it. Thanks for letting me know.
from bestbags-nodejs-ecommerce.
Related Issues (20)
- Date format
- Routing to app.js file
- Installation Guide HOT 3
- cant find HOT 1
- HI! i found this error how can i solve HOT 1
- Add SECURITY.md HOT 1
- Replacing Products HOT 1
- Schemas missing "_id" field - Readme.md HOT 1
- Not able to login in admin page, can you please share the credentials for admin on demo website HOT 1
- i have a issue when access link heroku of your HOT 1
- The index path corresponding to the specified order-by item is excluded HOT 1
- Readme file changes for populating seed values for products HOT 1
- Project Setup HOT 1
- Security Solution HOT 1
- Mongodb connect issue HOT 2
- Mongo DB URI Credentials HOT 1
- I cant able to fill MongoDB Atlas database. HOT 1
- unable to find port number ? HOT 1
- .env file is not seen by the other files HOT 4
- notice module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bestbags-nodejs-ecommerce.