#Should the backend and the admin be separate repositories?

1 messages · Page 1 of 1 (latest)

zenith cove
#

I'm trying to get the nextjs-starter to work between Vercel and Heroku and for some reason, I was confused about the Admin not being the same as the Backend. I ended up configuring things like the Admin was the Backend and now I think I've screwed something up.

Does someone have a tutorial or something for getting a regular e-Com store up and running between Vercel and Heroku?

zenith cove
#

Running on Heroku, I get:

2023-11-13T02:47:10.198228+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2023-11-13T02:47:10.199808+00:00 heroku[web.1]: Stopping process with SIGKILL
2023-11-13T02:47:10.449441+00:00 heroku[web.1]: Process exited with status 137
2023-11-13T02:47:10.468580+00:00 heroku[web.1]: State changed from up to crashed
zenith cove
#

If I'm hosting the backend on Heroku, should I just use the same domain for my Admin and my Backend?

opaque finch
#

Are you ready to pay for heroku and vercel? Their free version obviously won't meet your needs.

#

I noticed "Error R15 (Memory quota vastly exceeded)", and the free version of vercel is not commercially available.

zenith cove
#

I have paid Vercel already and I have AWS, but I didn't want to set up paid Heroku and I already owe DigitalOcean for a previous project where the product owner backed out on me. @opaque finch Is there any way to host it in a cost-effective manner on AWS?

#

I couldn't imagine having to go through this process for each one of my clients and then having to deal with account transfers when people back out. What a nightmare.

opaque finch
#

Sorry, I currently choose to use VPS and docker, and use Backend and Admin together, so I don't have much experience to share with you.

zenith cove
#

Why would such a simple task take up so much memory, though?

#

It can't be that memory-intensive to load a login screen. There has to be a memory leak somewhere.

golden bolt
#

@zenith cove

#

I have deployed admin and backend on a same ec2

#

t2 small is descent for this deployment

zenith cove
#

@golden bolt How much is that costing you per month? if you don't mind me asking?

golden bolt
#

let me check my aws once

#

but it always depends upon your usage

#

as aws t series charge on the basis of usage

zenith cove
#

Of course. I was just thinking to get an example started.

golden bolt
#

you can check it out on aws calculator

zenith cove
#

I mean, are we talking like $20 to just get it up and running or are we talking like $100?

golden bolt
#

no no

#

if running on t2 small the instance would cost you about 12-13$

#

with average usage of 50% per month

#

max possible would me 22$

#

in this case

zenith cove
#

Okay, and are you deploying with GitHub, Docker, or Kubernetes?

golden bolt
#

i am not containerising my application

#

i have used github actions

#

for ci/cd

zenith cove
#

@golden bolt hmm 🤔 Would you be willing to help me get it configured if I pay you?

golden bolt
#

sure

#

i'll dm u

zenith cove
#

Okay. It's almost midnight here and it's Monday tomorrow. Let me weigh my options and I'll reach out to you tomorrow.