[PR #12] Settling the Tech Stack and Deployment Path Before Writing Code
- What changed: Three hard-to-reverse technical decisions (the tech stack, the deployment path, and the text message service) were settled one question at a time and kept in one memo.
- Decision: TypeScript is used for everything. Operation runs in the AWS Seoul region. During development, the system runs on the Buzz server (Ubuntu) with five conditions attached.
- Still unknown: The company identification number and the number of admins for the app store must be checked by a person.
This is the record of a PR that bundled the hard-to-reverse technical decisions into one memo before any code was written. No code changed; only the decision memo and this PR’s work log went in.
What I did and why
- In the milestone document from the earlier PR #11, Claude and I settled items 1 to 3 of M0 (tech stack, deployment path, text-message service) by trading one question at a time, and saved the result as
기술-스택-배포-결정-메모.mdin the design-docs folder. The point is to bundle the hard-to-reverse decisions before writing code. - What was decided:
- One language, TypeScript, throughout. For now only I and AI will maintain it. The app is React Native + Expo (a tool that builds iPhone and Android apps from one codebase), the server is NestJS, the admin web is React + Vite, and the database is PostgreSQL.
- Production runs in the AWS Seoul region. The setup is EC2 t3.small (one virtual server) + Docker Compose (a tool that runs several programs together), RDS (a managed database) and S3 (file storage), at about 43 dollars a month.
- During development it goes on the Buzz server (Ubuntu), with five conditions attached. It moves to AWS before the on-site test (M2).
- The photo policy is: keep the original plus a display copy, temporary addresses, and only the module assignee and a designated administrator can view.
- For app-store accounts, Google uses the existing organization account and Apple is a new sign-up in the organization’s name (the account owner is the representative). There will be 2 administrators, and the admin web sits on a separate subdomain.
- I put the text-message service on hold. Only the facts that were confirmed were kept.
- Also changed were one line in the Buzz and Orca memo (“the FiCl development server is a conditional exception”), the text-message item in the milestone document (on hold), and sub-milestone 5 (moving to AWS).
The options I chose and the ones I dropped
- A PWA (a web page that behaves like an app) was dropped. For iPhone notifications to arrive, all of these are needed: adding it to the home screen, iOS 16.4 or later, and the user’s permission tap. Since the morning alarm is the core of this system, the risk is high. Flutter was dropped because it adds another language.
- RDS was chosen. At my request, Claude compared the cost with installing MySQL directly on EC2.
- EC2 is 3 to 11 dollars a month cheaper. But daily backups, restores and patching would be done by hand, and if a backup silently stops, nobody may notice.
- Within RDS, PostgreSQL and MySQL cost the same, so Claude showed in a table that the difference comes from how much is handed over, not from the type of database.
- One EC2 instance instead of ECS Fargate (a service that runs containers without managing servers). The Buzz server’s Docker Compose can be moved over as it is. ARM chips (t4g) were dropped because the Buzz server uses an Intel chip.
- The “only for the Buzz server” decision was not overturned; an exception was written instead. What was blocked earlier was running Orca agents directly under a server account, and this time it is a box (a container) that holds the service, so the risk differs. In return, a memory cap, network separation and using only fake data were attached as conditions.
- For the text-message vendor, only a recommendation was made and nothing was decided. That is because I put it on hold.
How I checked
- For prices, Claude did not rely on memory or search summaries but downloaded the AWS Price List API’s Seoul-region CSV files (RDS, EC2, S3) and extracted the numbers with a script. The files were kept in the session’s temporary folder and not put into the repository.
- On “does iPhone notification need a paid Apple account”, Claude first looked only at the Expo overview and FAQ and answered “not confirmed”. I told Claude to check right away, so Claude opened Apple’s feature table in a browser and read the cells on the “Push notifications” row directly (only the paid and enterprise cells were marked). The same sentence was in the Expo configuration documentation.
- For the AWS text-message service, Claude found the South Korea row in the country table directly and confirmed that specifying a sender number is not possible.
- Personal names, account details and internal addresses were not put in the memo. Administrators are written by role only.
What is left and what I learned
- What I have to do is check the company identification number (D-U-N-S) and the number of administrators in the app-store console, and add the representative as an administrator. After that I sign up with Apple in the representative’s name.
- What was not confirmed: whether Google’s “12 testers, 14 days” condition applies to the account, whether the containers start on an old CPU (2nd-generation i5), whether a 1 GB memory database is enough, how long a Korean D-U-N-S takes to issue, and whether an old Firebase project exists.
- The next M0 work is items 4 to 6 (verifying the reference data, growth and work rules, reading the old backend source) and item 9 (the scope spec for sub-milestone 1).
- This work left two lessons. Do not give up with “not confirmed” because the first page of the official documentation has no answer; the answer was often in a document one level deeper, such as a configuration guide. And on a page where the table is shown only as an image, text extraction shows blank cells, so the cells had to be read directly in a browser.