Hey everyone! I'm working on a website for a hobby project that my friends and I share, and I'm super excited about it! I've decided on using TypeScript and React for the front end. Now, I need some help figuring out the back end. I've ruled out Python since I'm quite familiar with it already, so I'm going to go with Node.js, specifically Fastify, because I want to learn something new. However, I'm a bit confused about how to structure the project. I'm considering a monorepo with a tool like Lerna, since I believe it can streamline deployment on platforms like Heroku. But does that make sense, or am I better off using two separate repositories? I want to avoid paying for two servers when my app is ready. Any insights would really help!
1 Answer
Your choice of Node with Fastify and TypeScript sounds solid! I think you’re definitely on the right track by wanting a single server for both your front end and back end. There's really no need for Lerna in your case since you won’t be publishing packages. Keeping it simple will make your life a lot easier!
Thanks for the reassurance! I wasn't quite sure what Lerna was really for. Should I just set up one folder for the front end and one for the back end instead of separate projects?