GithubHelp home page GithubHelp logo

Comments (6)

BrandonRomano avatar BrandonRomano commented on July 1, 2024

I am also experiencing this issue:

brandon@brandons-mpb $ node --version
v6.9.1
brandon@brandons-mpb $ npm install -g lumber-cli
npm WARN deprecated [email protected]: use uuid module instead
/Users/brandon/.nvm/versions/node/v6.9.1/bin/lumber -> /Users/brandon/.nvm/versions/node/v6.9.1/lib/node_modules/lumber-cli/lumber.js
/Users/brandon/.nvm/versions/node/v6.9.1/lib
└── [email protected] 

brandon@brandons-mpb $ lumber generate
ℹ︎  Enter your database connection details and then your admin interface will be automatically generated.
ℹ︎  Your database credentials are safe. They are only stored in the Lumber generated microservice.

? What's the database type?  postgres
? What's the database name? forest_example
? What's the database hostname? localhost
? What's the database port? 5432
? What's the database user?  brandon
? What's the database password? [optional]  ********
? Choose a project name:  forest_example

cd forest_example && npm install...
npm WARN enoent ENOENT: no such file or directory, open '/Users/brandon/Desktop/forest/forest_example/package.json'
npm WARN forest_example No description
npm WARN forest_example No repository field.
npm WARN forest_example No README data
npm WARN forest_example No license field.

👍  Hooray, installation success! 👍

Run your admin microservice:
$ cd "forest_example" && node ./bin/www

brandon@brandons-mpb $ cd "forest_example" && node ./bin/www
module.js:471
    throw err;
    ^

Error: Cannot find module '/Users/brandon/Desktop/forest/forest_example/bin/www'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
brandon@brandons-mpb $ ls 
etc/          node_modules/ 

from lumber.

jaseemkp avatar jaseemkp commented on July 1, 2024

I got same issue.

╭─[email protected] [Fri Jan 06, 10:58] ~/projects/Samples/lump
╰─➤  lumber generate
ℹ︎  Enter your database connection details and then your admin interface will be automatically generated.
ℹ︎  Your database credentials are safe. They are only stored in the Lumber generated microservice.

? What's the database type?  mysql
? What's the database name? lumb
? What's the database hostname? localhost
? What's the database port? 3306
? What's the database user?  root
? What's the database password? [optional]
? Choose a project name:  lumb-admin

cd lumb-admin && npm install...
npm WARN enoent ENOENT: no such file or directory, open '/Users/jaseem/Projects/Samples/lump/lumb-admin/package.json'
npm WARN lumb-admin No description
npm WARN lumb-admin No repository field.
npm WARN lumb-admin No README data
npm WARN lumb-admin No license field.

👍  Hooray, installation success! 👍

Run your admin microservice:
$ cd "lumb-admin" && node ./bin/www

from lumber.

SeyZ avatar SeyZ commented on July 1, 2024

Hey @jaseemkp @BrandonRomano @heinzin - In order to help me identifying more precisely the problem, can you tell me if you have a schema named public on your database?

from lumber.

BrandonRomano avatar BrandonRomano commented on July 1, 2024

@SeyZ -- Nope, it was an empty newly created database with no tables!

from lumber.

SeyZ avatar SeyZ commented on July 1, 2024

@BrandonRomano Oh I see. I will improve that, but Lumber needs to have tables available on your database to be able to create the project. Otherwise, your admin will be simply empty.

I will add a warning message to explain what's the error.

Same things for you @jaseemkp @heinzin ?

from lumber.

SeyZ avatar SeyZ commented on July 1, 2024

Please, reopen this issue if the problem is not just "an empty database" @jaseemkp @heinzin

Thank you @BrandonRomano !

from lumber.

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.