Reliable Node + React Deployment workflow

Okay So I am a Full stack developer. I usually make Frontend, and write the API's for my frontend on a node express server. I want to know what is the best way to deploy both the API and the Client app to the a remote site(or hosting) server using some workflow. I have tried Next, where you can create the Api in the same application, But I do not want that Kind of an implementation so I wont be using Next. I want to keep my Frontend and backend Seperate. I generally host my Frontend on Vercel as it handles the deployment smoothly, and easy to work with all the environment variables and such. I want to know a better way to host my backend API's. Maybe try an nginx server, or a docker container I dont know. I am not that experienced in hosting and CI/CD so would love to hear opinions.
2 Replies
wolfulus
wolfulus16mo ago
you can use caddy which is way easier to setup than nginx, to serve your static frontend files + reverse proxy some routes to your node server I always use containers to do so too there's also some PaaS that you can self host and have experiences like heroku dokku is one of them but I found coolify some time ago, and it's really interesting there's so many things you can do in this field. if you don't mind paying a couple bucks more, you can also use a managed application platform like digitalocean apps that works really well
Senra
SenraOP16mo ago
Oh I see Coolify seems really good
Want results from more Discord servers?
Add your server