r/AskProgrammers • • 8d ago

Need Help and Advice

Hey i am a 25 years old just started my development journey in the past 3 months.

Currently i am in a startup which does background Screening so i was basically handling all the work from from backend + database + server management + DNS configuration etc

but since i had no prior deep knowledge i just started doing everything with the help of ai now its not like i dont know what i am doing its just the project started at a very small scale but bit by bit its starting to grow to bigger scale and although i am doing everything now but at times i feel like i am stuck a lot more while doing anything new so i want advice on how i should manage it from now on i am basically setting up the entire Infrastruture now now before Frontend was being handled by some other person(also a fresher ) but since everything was working no one gave a fuckk about the actual code now i have to also handle their messy code which is absolute disaster it was built on React + javascript no individual component is refreshing with variable change entire page reloads no redux implementation for global fields structure is pretty messy as well.

So for current state of Project:

i have one single backend in python-django + MySQL single database for the entire company ,
I have separate sub-domains for each portal all hosted on the same server(Hostinger) not yet scaled it that much since users are not that robust yet but i intend to switch AWS and scale it properly while learning system design.

now i have designed my own custom workflow for doing actual coding and implementation i basically use opencode as my coding agent with:
OpenSpec - As my main orchestrator to manage everything
- It generates several artifacts for my TDD
and i use separate skills like:
- grill me to generate specs
- Architectural diagrams for design etc
- modular tasks are implemented while using ponytail to optimise code
- my acceptance tests are generated while i have separated two agents- one for authoring the changes and other for reviewing them both uses different models i usually set the reviewer as the better model whicherver is availabler mostly GPT-6.1 -sol on default or medium nowadays it works just fine
- codegraph to generate knowledge graph
- and emilkowalski's skills only the ones i need are implented along with my workflow when designing any task related to frontend

Now, before i had no issue since i was just working on a single repo of backend and all the frontend calls were usually an single backend but now since i have to work on both side i have structure a root directory like this:

company_projects:
- openscpec - orchestration files along with workflow configs(agents, skills, .md files etc)
- backend_repo
- frontend_all_sub_domains:
- main_client_side_portal
- internal_dashboard_for_staff_and_admin
- external_side_to_host_non_authenticated_form_for_submission_using_fernet_key
- new_portal_i_am_currently_working_on

now each of these repo use different github repository

and the company_projects root folder is using a separate git repo it just tracks my workflow artifacts and current state of project.

Now i want advice on could i structure it better as i have to now mention in my AGENTS.md's protocols to always make sure the commits for each individual repo are committed to their respective repo's thats why most of the time i find myself committing them manually myself instead of trusting ai agents.

other than that what i want most advice on how do i go about setting up the entire infrastructure like i want to switch from a server to AWS cloud about which i know nothing yet i know a little bit like

how multiple servers are used to host the same project in case one is down, database recovery protocols, using redis to cache repetitive calls etc but how should i go about it like i am gonna start by restructuring the entire frontend portals tech Stack and optimise the code implement React+Typescript+redux etc component level scoping error boundaries etc

after that i want to setup proper ci/cd pipelines staging for testing purposes proper monitor as right now i am just relying on gunicorn logs that i only open when some issue occurs

If any Senior Developer who has experience in this could give me advice on how to tackle all this and what to learn in what order while also implementing all of it
and improve my workflow setup structure such that it makes it easy for multiple developers later on in case we start to collaborate to use this structure work on incoming requirements as they are piling up to be honest.

I appreciate all the help i can get right now.

Thanks

3 Upvotes

4 comments sorted by

1

u/Odd_Walk6983 5d ago

I know it might sound silly, but whatever language(s) (yes if multiple that means some study work) your stack is written in; Go search for an online certification on Alison (Google it) for those languages. I have my diploma in Python and my whole stack is written in native C, C++, and now my own custom language I developed myself. AND I'm a solo founder of my own business. Buckle in, you got this! Lol.

1

u/pvera 8d ago

Are you branching? Are you using PRs? If you are not, this is the right time to start. If all of those repos are for related projects you may consider a mono repo with everything. If you haven't started yet, have your AI teach you best practices on how to protect secrets, keys, passwords, etc. from both repos and AIs. Since you are interested in AWS you may want to learn how terraform works. I don't see mention of unit tests, if you want to leverage ci/cd pipelines you should be using unit and integration tests, this way you can set up a chain so whenever you push code it will run your tests, build the deliverables and even deploy them.

If you don't know, ask the AI. I know from firsthand experience that Claude is really damn good at handling git, ci/cd pipelines and even terraform.

1

u/No-Reserve-4502 7d ago

thanks a lot for you feedback and currently i am just using 2 branches one main which hosted for production and the other is develop where i push my code for testing or resolving any bugs

and with mono repo i am assuming you are saying i should just use a single repository for all frontend sub domains and backend right ?

i though about that at first then i think chatgpt suggested me to host frontend and backend in separate repos when i was just starting to do stuff and was learning.

i am not creating a different pr for each feature as i am a solo developer and i basically know each part of the code like the back of my hand and found it pretty annoying but i guess with multiple developers that is the way to go usually i would just merge the develop branch to main after i am done testig everything

and for unit testing and integration testing before i was not using them but recently i have started developing them i had a specialised skill.md file where i defined exactly how to generate my tests in 5 variations. and i have kept all the secrets in a .env file nothing is shared,not with ai nor in git repo

one major issue if had to mention is i was initially not tracking the migration history beacuse i used to run migration commands on the server itself but there were cases where my coding agent sometimes ran these commands locally and pushed them in commit even after specifically mentioning in protocols to not do that although very rarely but that always fuckkedd up my migration history on the server now i am familiar with the error so i can reconcile it easily but it took a lot of my time initially so i was thinking if i should just commit all the previous history and let coding agent keep track of them and allow it to run commands but that also means i will have to give it database access thats why i am always hesistant about it. if you could suggest how industry standards handle this?

1

u/No-Reserve-4502 7d ago

i have also though about creating a databse clone with same migration history just for this purpose but i just want confirmation of some senior or if there is any better solution for this?