Deploying a decoupled monorepo project on Heroku
Blog post from LogRocket
The article provides a detailed guide on deploying a decoupled monorepo project to a single Heroku dyno, which includes both a client and server application built with TypeScript. It explains the benefits of using a monorepo, such as easier project management and code sharing, and recommends using separate `package.json` files for each system in a decoupled project to maintain scalability. The guide walks through setting up the client application using Vite, configuring proxy settings for development, and building a server application with Express, including creating a simple REST API endpoint. It also covers the steps needed to test the server application and configure Heroku to install dependencies and build the applications. By following these steps, developers can run the server to serve the client application and handle communication between them, while also illustrating how to manage multiple microservices if needed.