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

default username and password using installation method of node and npm #24

Open
dipenpatel235 opened this issue Jun 30, 2018 · 6 comments

Comments

@dipenpatel235
Copy link

  • I'm submitting a ...
    [ ] bug report/ help

  • What is the current behavior?
    successfully installed and start app but dont knwo what is default username and password.
    using docker default username and password work but not work on npm based start without used of docker

demo of the problem**
capture

  • What is the expected behavior?
    must be able to login as default username and password or
    need to provide where to create database , database name and database location and default database user

  • Please tell us about your environment:
    npm -v 3.10.10
    node -v v6.14.2

@koppor
Copy link
Member

koppor commented Jun 30, 2018 via email

@dipenpatel235
Copy link
Author

dipenpatel235 commented Jun 30, 2018

ok...no problem..when u free and u can give answer.
but where is default database file and what is default database file name need to keep ?

i can see in .sql below value but i don't know from which database file path application will fetch that data.

INSERT INTO User VALUES('maintainer','[email protected]','Demo','Account','-2fa40176349855d6b07220f196f82200b876d9bfffa43168',X'41692618dc416d347bb448dcafe87d4d6df7a4c3','MAINTAINER');
COMMIT;

Thanks

@muelletr
Copy link
Collaborator

I think the database should be stored at your users home directory, e.g. for Windows at
"C:\Users\{username}\CloudRef\CloudRef.sqlite"

return System.getProperty("user.home") + "/CloudRef" + "/";

configuration.setProperty("hibernate.connection.url", "jdbc:sqlite:" + cloudRefDirectory + "CloudRef.sqlite");

@luko0610
Copy link
Contributor

luko0610 commented Oct 19, 2019

You are getting a 404, which means that this is not due to the database file, but because the basePath in the DefaultApi.ts is not right.

Just change it as follows:

protected basePath = location.protocol + '//' + location.hostname + ':' + '8080';

Then it should work.

@luko0610
Copy link
Contributor

I think that this can be closed.
The README doesn't include that the user-maintainer.sql must be executed in the appropriate directory. So this should be added.

@koppor
Copy link
Member

koppor commented Oct 21, 2019

@luko0610 just file a PR changing the README.md 😅 #hacktoberfest

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

No branches or pull requests

4 participants