Giter VIP home page Giter VIP logo

Comments (2)

gfyre avatar gfyre commented on June 5, 2024

So what I did is copied the .env.development file from the web-client folder and pasted it in the server directory and it worked.

from veniqa.

gfyre avatar gfyre commented on June 5, 2024

I am now getting a DB error

username@username shopping-server % npm run devstart

> [email protected] devstart /Users/username/Desktop/Veniqa/shopping-server
> nodemon --exec babel-node ./bin/www

[nodemon] 1.18.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `babel-node ./bin/www`
/Users/username/Desktop/Veniqa/shopping-server/node_modules/winston-mongodb/lib/winston-mongodb.js:55
    throw new Error('You should provide db to log to.');
    ^

Error: You should provide db to log to.
    at new exports.MongoDB (/Users/username/Desktop/Veniqa/shopping-server/node_modules/winston-mongodb/lib/winston-mongodb.js:55:11)
    at Object.<anonymous> (/Users/username/Desktop/Veniqa/shopping-server/logging/logger.js:32:5)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at loader (/Users/username/Desktop/Veniqa/shopping-server/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/username/Desktop/Veniqa/shopping-server/node_modules/babel-register/lib/node.js:154:7)
    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.<anonymous> (/Users/username/Desktop/Veniqa/shopping-server/database/dbConnection.js:3:1)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at loader (/Users/username/Desktop/Veniqa/shopping-server/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/username/Desktop/Veniqa/shopping-server/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
[nodemon] app crashed - waiting for file changes before starting...

Which file do I enter the mongoDB credentials and the API keys. I am sorry but I am really confused.

Thanks.

from veniqa.

Related Issues (20)

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.