Monday, 20 April 2020

Git

Check os version in Linux: cat /etc/os-release

Install git for Fedora: sudo yum install git

Logged in with Administrator user and generated git credentials stored in notepad.

The created repository "hasapian-foods" can be found in the link below:

https://us-east-2.console.aws.amazon.com/codesuite/codecommit/repositories?region=us-east-2

Created github repository as well:

https://github.com/hasapian/foods

"git add ." works
"git status" is really helpful

Sunday, 19 April 2020

Connected!







Authentication error:
ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

Solved by adding

command: --default-authentication-plugin=mysql_native_password

in the docker-compose.yaml file (found in the docker hub mysql image Readme file). Idea for the solution provided by
















https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not-support-authentication-protocol-requested-by-server

We also had issue with nodejs running before mysql server being ready. Changed entrypoint in docker-compose to app.js which does not connect to db. Then run dbhandler.js like the first image.

depends_on does not soleve the above issue. Scripts need to be created like the links below:




from https://docs.docker.com/compose/compose-file/

Solutions in case we need it in the future:

https://docs.docker.com/compose/startup-order/
Search for "No connections until MySQL init completes" in https://hub.docker.com/_/mysql
2 links are provided at the end.




Package json dependencies

To specify the packages your project depends on, you must list them as "dependencies" or "devDependencies" in your package’s package.json file. When you (or another user) run npm install, npm will download dependencies and devDependencies that are listed in package.json that meet the semantic version requirements listed for each


Friday, 17 April 2020