Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datasources.json location in sample app project? #41

Closed
harshadyeola opened this issue Jul 26, 2016 · 1 comment
Closed

datasources.json location in sample app project? #41

harshadyeola opened this issue Jul 26, 2016 · 1 comment

Comments

@harshadyeola
Copy link

Where I should keep my datasources.json file for my app. When I refer README/doc I find it in example/server/datasources.json
So when I install this module with npm install the source goes in node_modules directory of my app directory.
So should I edit my datasources.json file in node_modules of my app?

@pulkitsinghal
Copy link

  1. examples directory is not published to NPM so you will not find it under node_modules directory of your app after npm install

  2. You should not edit datasources.json file in node_modules

  3. datasources.json file for your loopback app should be in your server directory:

    > your app
      > server
        > datasources.json
      > node_modules
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants