Hey everyone first time fullstack noob here, novice python, JS and CSS/HTML dev in the middle of development for a Fullstack Django React Native app, the thing is I made a mess out of my modules and nodes trying to compile with 95 no module found error on the expo CLI, I started with npm and the tried yarn since it was recommended and I ended up with a sorry mess. So since the Django backend API is already running on the messy project I’m going for the new project copy paste old code approach, the front end also has components and screens that may need a few touches but the bulk is already there. I not sure about the proper order and want to make extra sure I have the appropriate folder/project creation order so the compiling and installation is as streamlined as possible as well as the creation of the venv; on the last project I had two that had hardcoded the paths for the django folder and the frontend one since I had some issues with my project finding the appropriate folder, so that’s the right approach? at which time during the creation of the projects should the venv creation happen or more precisely which project should be created first with its corresponding venv, Django or React Native Expo, since as far as I understand there’s an ideal order that will create and setup some specs automatically. Any help is greatly appreciated! Thanks

Edit; To clarify a bit further I had the django server up and running and getting 200s so when deciding for a frontend approach I got sold on the CSS module separation of concerns/files from my .jsx components and screens on react native and at one point I had the npm installation running smoothly with only 5 critical vulnerabilities but the ‘no module found on this folder’ still popped up while trying to compile so long story short I tried almost anything that came on goggling and finally I reduced the number of errors from 98 to 95 with a tutorial but while following some instructions on expo or react native documentation it mentioned that yarn was recommended over npm so I thought what the hell, why not, and now I have a broken mess on the frontend project that seems unsurmountable so I decided to start proper and make extra sure I got the correct order as well as venv paths and such.

  • @[email protected]
    link
    fedilink
    210 months ago

    This is a long post without line breaks, so might have missed what you’re looking for - but it sounds a bit like you’re looking for some guidance on what order to tackle challenges in.

    If so, you probably want to Obey The Testing Goat.

    The book is free online. It’s focused on Test Driven Development with Django, and it’ll give you some great tools for deciding what to do next and knowing when you’ve done it.

    More specifically to your case - there’s no magic relationship between a Django API and a React Native app.

    Obey The Testing Goat will help you learn how to confirm your Django is working.

    You may also want to find a React Native tutorial that uses a public API to practice with, then you can migrate to your own API once you know the ropes of React Native.

    • @catfishOP
      link
      210 months ago

      I will def listen and obey the goat, thank you for your response