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 credentials - fresh install #129

Closed
gridworkz opened this issue Sep 21, 2020 · 2 comments
Closed

Default credentials - fresh install #129

gridworkz opened this issue Sep 21, 2020 · 2 comments

Comments

@gridworkz
Copy link

gridworkz commented Sep 21, 2020

Hello - what are the default credentials to login on a fresh install? Cheers, Dave

Update - figured it out:

curl --header "Content-Type: application/json"
--request POST
--data '{"email":"john@doe.com","password":"john"}'
http://127.0.0.1:3000/api/login

btw: my client is running on port 3000.

It didn't seem to create the user (john@doe.com) for me during the install - just a docker user:

permacoop=# select * from user;
user

docker
(1 row)

permacoop=# select * from user_administrative;
id | joiningDate | leavingDate | annualEarnings | transportFee | healthInsurance | executivePosition | contract
----+-------------+-------------+----------------+--------------+-----------------+-------------------+----------
(0 rows)

permacoop=# select * from customer;
id | name | createdAt | addressId
----+------+-----------+-----------
(0 rows)

@mmarchois
Copy link
Collaborator

mmarchois commented Sep 21, 2020

Thank you for this feedback.
Did you use the command make install? It launches the project setup as well as the database migration.
Otherwise you can also use the command make database-migrate.
In the near future, I also plan to improve the docker setup and in particular the communication between containers.

@gridworkz
Copy link
Author

Thanks, I'll check that out.

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