zonesbad.blogg.se

Pern stack
Pern stack











The reason I like PERN with TS is that it's performant and type-safe, specifically TS and PG are a good match. That will be the real challenge/test of my knowledge. My next step is to follow the PERN (Postgres, Express, react, Node) stack course by FCC and add in TS myself. I'll need the time to digest what I did and take some notes, but I feel a lot more comfortable building with TypeScript than I did on Friday night (it's Sunday night) The only thing I haven't done is put it all together. I'll be interested to know how things develop with the new JS types that was announce recently - though that might take a while (years) to reach production JS. There's just a bit more to know and write. TS, apart from the learning curve, isn't bad.

  • Routes go below the parser in Express - this error meant that the req.body was returning 'undefined' and so couldn't make my POST requests.
  • Though, it has to be said it wasn't TS which was at fault but other aspects I worked out along the way like: Overall, it was trickier to set up the back end with TS than working with React. Ok, so I haven't actually gotten round to making a full-stack PERN app, but I will next weekend. I understand Spanish and got the benefit of the comments while brushing up on my listening skills! It's in Spanish, but if that bothers you, turn off the sound and follow the code, looking things up as you go. The best was this Nodejs, PostgreSQL & Typescript, REST API CRUD tutorial.

    pern stack

    It was not easy to find a good resource online about how to set up a TS / PG project which also had raw SQL (no ORM - Object-Relational Mapper) so that I could understand how the queries are used in the API.Express/Node + Postgres API with CRUD operations.Brad at Traversy Media showing me the path forward for setting up TS with Express/Node.Simple instantiation of an Express/Node app with types.It makes more sense now and I'll be leveraging the React-TypeScript Cheat-Sheet more going forwards.React-TypeScript is what I knew less and was a bit trickier to conceptualise before doing the FCC tutorial.

    pern stack

    This weekend I created 3 repos to get to grips with TS at all levels of the stack:













    Pern stack