Open chrisdraws opened 1 week ago
Hi @chrisdraws, thank you for raising this issue.
This seems to be issue with ENV variables. It seems that I accidentally added .env
file to .gitignore
.
And because of it backend is trying to connect to MySQL database.
Default .env
is setup so that it uses mock data instead of MySQL.
I've pushed the apps/quacker-backend/.env
file to final
and master
branches: https://github.com/heracek/practical-monorepo-nx/blob/final/apps/quacker-backend/.env
If you are on initial-state
branch please copy this file to backend/.env
.
Hi @chrisdraws, did it help?
yes it did!! I continued with the tutorial and you do eventually add them back in when converting your frontend and backend to NX. :) thanks for your help. Do you have any recommendations on more advanced NX tutorials? Your's was great, but I'd like to have something for my team to use to really learn NX inside and out. :)
Great, I’m glad that it helped.
For more advanced/expert level knowledge about Nx I would recommend those two free ebooks:
Trying to run the backend via the "yarn dev" command and getting the following error. Frontend works perfectly. I've tried changing my node version, I've tried changing localhost to 127.0.0.1 in different places. Nothing seems to solve this. Enjoyed your youtube video and I'm now trying to actually follow along and run the code base.