DEV Community

Kristjan Grm
Kristjan Grm

Posted on

1 2

CI/CD for personal project on homerserver

Hello everyone,

For the sake of learning a created a simple web-app.

It consist of:
next-js (react) frontend
spring boot backend
postgres db

I am running everything on my homeserver.
I created special VM for this. (ubuntu). I'd like to introduce CI/CD to this. I installed jenkins on seperate VM. I also set-up ssh and all things required to make this work...

For java project I simply build jar and transfer it to the application server and then run it by using remote ssh plugin..

I thought I could do the same for frontend and while I think I can accomplish this the end result would be really complicated & messy...

So I am looking for some good advice / guide where I could learn all of above.

Top comments (1)

Collapse
 
siy profile image
Sergiy Yevtushenko

These days I'd rather use containerized configuration: one container for frontend, one for backend and one for DB. All components then can be built and packaged as containers and then a small compose script would bring them all together into one network. For some complex testing it might be convenient to bring yet another container with the test runner.

Great read:

Is it Time to go Back to the Monolith?

History repeats itself. Everything old is new again and I’ve been around long enough to see ideas discarded, rediscovered and return triumphantly to overtake the fad. In recent years SQL has made a tremendous comeback from the dead. We love relational databases all over again. I think the Monolith will have its space odyssey moment again. Microservices and serverless are trends pushed by the cloud vendors, designed to sell us more cloud computing resources.

Microservices make very little sense financially for most use cases. Yes, they can ramp down. But when they scale up, they pay the costs in dividends. The increased observability costs alone line the pockets of the “big cloud” vendors.

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay