인공지능

Spacefast와 함께 AI 웹 앱을 구축하고 배포하기: 실용 가이드

Build and Publish an AI Web App with Spacefast: A Practical Guide

AI를 활용해 회의 비용 계산기를 만들고, Spacefast에서 배포를 탐색하며, 자격 증명을 노출하지 않고 안전한 저장-역사 데이터베이스를 추가하는 방법을 단계별로 배워보세요.

Spacefast로 AI 웹 앱 만들고 출판하기: 실용 가이드

AI 어시스턴트는 몇 분 안에 작동하는 애플리케이션을 생성할 수 있습니다. 해당 애플리케이션을 온라인으로 게시하고 사용해도 안전한지 알아보는 것은 다른 작업입니다.

Spacefast, from Automattic, aims to connect the two steps: work with an AI assistant, then publish the resulting application. To explore the workflow, we'll build something useful: a meeting-cost calculator, first as a small browser application and then, as an optional second stage, with saved calculations.

Automattic의 Spacefast는 두 단계를 연결하려는 목표입니다: AI 어시스턴트와 작업하고, 그 결과물 애플리케이션을 출판합니다. 워크플로를 탐험하기 위해 우리는 유용한 것을 만들 것입니다: 회의 비용 계산기를 먼저 작은 브라우저 애플리케이션으로 만들고, 선택 사항인 두 번째 단계로 저장된 계산과 함께 만들 것입니다.

What this guide does and does not prove: The application design, calculation examples and security principles below are reproducible. Spacefast's exact connection screens, supported AI-client setup and deployment commands still need to be checked against its live documentation. We have not completed a hands-on Spacefast deployment, so we won't pretend that we have.

이 가이드가 증명하는 것과 증명하지 않는 것: 아래의 애플리케이션 설계, 계산 예시 및 보안 원칙은 재현 가능합니다. Spacefast의 정확한 연결 화면, 지원되는 AI 클라이언트 설정 및 배포 명령은 실시간 문서에 대해 확인해야 아직 필요합니다. 저희는 실제 Spacefast 배포를 완료하지 않았으므로, 그렇게 하지 않겠습니다.

Our project in four stages

Four stages from idea to published app

아이디어에서 출판된 앱까지의 4단계

1. Start with a useful, testable application

1. 유용하고 테스트 가능한 애플리케이션으로 시작하기

Our calculator asks for three values: number of people, meeting duration in minutes and estimated hourly cost per person. It immediately shows the total.

우리의 계산기는 세 가지 값(참가자 수, 회의 길이(분), 참가자당 예상 시간당 비용)을 입력하도록 요청합니다. 즉시 총계를 보여줍니다.

Formula: participants × (minutes ÷ 60) × hourly cost.

공식: 참가자 × (분 ÷ 60) × 시간당 비용.

For six people meeting for 45 minutes at €40 per hour, the result is €180.

6명이 1시간에 40유로(€40) 비용을 가정하고 45분 회의를 하면 결과는 €180입니다.

Expected application screen — illustrative mockup

예상 애플리케이션 화면 — 설명용 목업

Meeting cost calculator with six participants and a €180 result

참가자 6명과 €180 결과를 보여주는 회의 비용 계산기

Illustration of the expected result, not a screenshot of an app deployed on Spacefast.

기대 결과에 대한 설명입니다. Spacefast에 배포된 앱의 스크린샷이 아닙니다.

Give the AI a precise prompt

AI에게 정확한 프롬프트 제공하기

Use this prompt with your preferred coding assistant:

선호하는 코딩 어시스턴트와 이 프롬프트를 사용하세요:

Create a responsive meeting-cost calculator using plain HTML,
CSS and JavaScript. No external dependencies or backend.

Inputs:
- Participants: integer, minimum 1, default 6
- Duration in minutes: positive number, default 45
- Hourly cost in EUR: non-negative number, default 40

Formula:
total = participants * durationMinutes / 60 * hourlyCost

Requirements:
- Update the result when any input changes.
- Use accessible labels and aria-live for the result.
- Validate inputs and never display NaN or Infinity.
- Work on a 360px-wide screen.
- Do not add tracking, external APIs or accounts.
- Return complete index.html, styles.css and app.js files.
- Explain how to test them locally.

Save the three files in the same directory. Check that index.html references the correct stylesheet and script. Open the page in a browser. If the assistant introduced dependencies or build steps, ask it to explain them before continuing.

세 파일을 같은 디렉터리에 저장하세요. index.html이 올바른 스타일시트와 스크립트를 참조하는지 확인하세요. 브라우저에서 페이지를 열으세요. 어시스턴트가 의존성이나 빌드 단계를 도입했다면, 계속하기 전에 설명을 요청하세요.

2. Test the calculator before deploying

2. 배포 전 계산기 테스트하기

A generated application is not automatically a correct application. Test known inputs first.

생성된 애플리케이션은 자동으로 정확한 애플리케이션은 아닙니다. 먼저 알려진 입력값으로 테스트하세요.

People Duration Hourly cost Expected total
6 45 min €40 €180
3 120 min €50 €300
1 30 min €0 €0
인원 소요 시간 시간당 비용 예상 총계
6 45분 €40 €180
3 120분 €50 €300
1 30분 €0 €0

Then empty a field, enter a negative number, resize the browser to mobile width and navigate with the keyboard. The calculator should reject invalid values gracefully.

그런 다음 필드를 비우고, 음수를 입력하고, 브라우저 창을 모바일 너비로 조절하고, 키보드로 탐색하세요. 계산기는 잘못된 값을 우아하게 거부해야 합니다.

If a test fails, send the exact inputs and observed output to the assistant. Ask for a targeted fix and rerun the tests. Keep a working local version before trying to publish.

테스트가 실패하면, 정확한 입력값과 관찰된 출력을 어시스턴트에게 보내세요. 정확한 수정을 요청하고 테스트를 다시 실행하세요. 게시를 시도하기 전에 작동하는 로컬 버전을 유지하세요.

3. Connect your AI assistant to Spacefast

3. AI 어시스턴트를 Spacefast에 연결하기

The service is presented as an AI-oriented way to host projects. Start with the official Spacefast website and its current documentation, rather than relying on instructions copied from an old tutorial.

이 서비스는 프로젝트 호스팅을 위한 AI 지향 방식으로 제시됩니다. 오래된 튜토리얼에서 복사한 내용에 의존하는보다 공식 Spacefast 웹사이트와 현재 문서부터 시작하세요.

  1. Create a Spacefast account and inspect the plan available to you.
  2. Spacefast 계정을 만들고 사용 가능한 계획을 확인하세요.
  3. Consult the current setup instructions for your specific assistant (ChatGPT, Claude, Cursor or another supported client).
  4. 귀하의 특정 어시스턴트에 대한 현재 설정 지침(챗GPT, 클라우드, 커서 또는 지원되는 다른 클라이언트)을 확인하세요.
  5. Use the officially documented connection method. Review permissions before authorizing access.
  6. 공식적으로 문서화된 연결 방법을 사용하세요. 접근을 승인하기 전에 권한을 검토하세요.
  7. Confirm that the connection supports the type of project you created: static HTML/CSS/JavaScript.
  8. 연결이 생성한 프로젝트 유형(정적 HTML/CSS/JavaScript)을 지원하는지 확인하세요.
  9. Keep credentials and private tokens out of public chats, source code and screenshots.
  10. 자격 증명과 개인 토큰을 공개 채팅, 소스 코드 및 스크린샷에 두지 마세요.

Important: This guide cannot yet give verified button labels or a universal connection command. Those depend on the supported client and the current Spacefast integration. We will not invent them.

중요: 이 가이드는 아직 확인된 버튼 라벨이나 범용 연결 명령을 제공할 수 없습니다. 이들은 지원되는 클라이언트와 현재 Spacefast 통합에 따라 다릅니다. 저희는 이를 만들어 내놓지 않겠습니다.

4. Publish the tested application

4. 테스트된 애플리케이션 출판하기

Once your assistant is connected through the supported workflow, give it the tested files and a narrowly scoped instruction:

어시스턴트가 지원되는 워크플로를 통해 연결되면, 테스트된 파일을 제공하고 범위를 좁게 한 지시를 하세요:

Publish my tested meeting-cost calculator to my Spacefast
workspace using the officially supported publishing workflow.

Keep the HTML, CSS and JavaScript logic unchanged.
Do not add analytics, authentication, external APIs or a database.
If a private preview is supported, use it first.
Report the published URL, the files deployed and any errors.
Do not configure a custom domain without my confirmation.

This is a proposed instruction, not a verified Spacefast command. If the assistant cannot publish the project, follow the actual integration documentation and record the error rather than guessing.

이것은 제안된 지시이며, 확인된 Spacefast 명령이 아닙니다. 어시스턴트가 프로젝트를 출판할 수 없다면, 추측하는 대신 실제 통합 문서를 따르고 오류를 기록하세요.

After deployment, open the URL in a separate browser. Check the two expected calculations, responsive layout, missing files (404s), console errors and unexpected network requests. Test whether an incognito visitor can open the link: a difficult-to-guess URL is not necessarily access control.

배포 후, 별도의 브라우저에서 URL을 열으세요. 예상되는 두 계산, 반응형 레이아웃, 누락된 파일(404), 콘솔 오류 및 예상치 못한 네트워크 요청을 확인하세요. 링크를 여는 불구터기 사용자가 있는지 테스트하세요: 어려운 URL은 반드시 접근 통제가 아닙니다.

Finally, change a harmless label, redeploy and verify that the updated version appears.

마지막으로, 무해한 라벨을 변경하고, 다시 배포한 다음 업데이트된 버전이 나타나는지 확인하세요.

5. Improve the app: save calculation history

5. 앱 개선: 계산 기록 저장하기

Our first version works only in the browser. Once you close the page, its previous calculations are not stored in a shared database.

우리의 첫 번째 버전은 브라우저에서만 작동합니다. 페이지를 닫으면 이전 계산이 공유 데이터베이스에 저장되지 않습니다.

A useful next feature is Save calculation, followed by a list of previous estimates.

유용한 다음 기능은 계산 저장이며, 그다음 이전 추정 목록이 따릅니다.

What we want to build next — illustrative history

다음에 만들고 싶은 것 — 설명용 기록

Meeting cost calculator showing two saved calculations

두 개의 저장된 계산을 보여주는 회의 비용 계산기

Illustrative result. These records have not been saved on Spacefast.

설명용 결과입니다. 이 기록은 Spacefast에 저장되지 않았습니다.

6. How to use a database without exposing passwords

6. 비밀번호를 노출하지 않고 데이터베이스 사용하기

This is the part that often sounds more complicated than it really is. Let's start with the question: When someone clicks Save, where does the calculation go?

이 부분은 종종 실제보다 더 복잡해 보입니다. 시작해봅시다: 누군가 저장을 클릭하면 계산은 어디로 가나요?

Step 1 — Understand the three components

1단계 — 세 가지 구성 요소 이해하기

How saving a calculation works — three steps

계산 저장이 작동하는 방법 — 세 단계

Three steps for saving a calculation securely from the browser to MySQL

브라우저에서 MySQL로 계산을 안전하게 저장하는 세 단계

Browser → server-side verification → managed database.

브라우저 → 서버 측 검증 → 관리형 데이터베이스.

The key rule: the browser never needs the MySQL username or password. It calls server-side code, which is responsible for accessing the database safely.

핵심 규칙: 브라우저는 MySQL 사용자 이름이나 비밀번호가 필요하지 않습니다. 브라우저는 서버 측 코드를 호출하며, 데이터베이스에 안전하게 접근할 책임은 그곳에 있습니다.

With traditional PHP/MySQL hosting, you normally keep database credentials in a private server configuration file. Spacefast documents a managed database binding for supported server runtimes. In its Zero runtime, server-side code can use ctx.db; in Functions, the documented binding is env.DB. These are developer-facing names for a connection managed by the platform—not secrets to copy into JavaScript.

전통적인 PHP/MySQL 호스팅에서는 일반적으로 데이터베이스 자격 증명을 private server configuration 파일에 유지합니다. Spacefast는 지원되는 서버 런타임에 대한 관리형 데이터베이스 바인딩을 문서화합니다. Zero 런타임에서는 서버 측 코드가 ctx.db을 사용할 수 있으며, Functions에서는 문서화된 바인딩이 env.DB입니다. 이것은 플랫폼이 관리하는 연결에 대한 개발자용 이름이지, JavaScript에 복사할 비밀 정보가 아닙니다.

The exact APIs and supported runtimes should be checked in the Spacefast database documentation before implementation.

구현 전에 정확한 API와 지원되는 런타임은 Spacefast 데이터베이스 문서에서 확인해야 합니다.

Step 2 — Ask the assistant to add persistence

2단계 — 어시스턴트에게 지속성 추가 요청하기

Do not ask the AI to “put the MySQL password in the JavaScript.” Instead, give it a feature specification:

AI에게 "JavaScript에 MySQL 비밀번호를 넣어라"고 요청하지 마세요. 대신 기능 명세를 제공하세요:

Extend our tested meeting-cost calculator so a signed-in user
can save calculations and see their own history after reloading.

Use a Spacefast-supported server runtime and its managed database
binding, following the current official documentation.

Requirements:
- Add a Save calculation button and a history list.
- Store participant count, duration, hourly cost and total.
- Validate all inputs and recalculate the total on the server.
- Restrict reading and writing records to their owner.
- Do not put database credentials, tokens or API keys in the browser.
- Explain each created or changed file.
- Explain how to test saving, reloading and access permissions.
- Do not invent unsupported Spacefast APIs.

Why ask for a signed-in user? If the history is personal, the server needs a reliable way to know whose records it is returning. Without authentication and authorization, one visitor could potentially read another visitor's calculations. A managed database does not automatically solve this problem.

로그인한 사용자를 왜 요청하나요? 기록이 개인적이라면 서버는 반환할 기록이 누구의 것인지 신뢰할 수 있는 방법이 필요합니다. 인증과 권한이 없으면 한 방문자가 다른 방문자의 계산을 읽을 수 있습니다. 관리형 데이터베이스는 이 문제를 자동으로 해결하지 않습니다.

Step 3 — Know what the AI is supposed to create

3단계 — AI가 만들어야 하는 것을 알기

The assistant should produce three functional pieces:

어시스턴트는 세 가지 기능적인 구성 요소를 만들어야 합니다:

Piece Purpose Where it runs
Save button and history Sends requests and displays results Browser
Server-side save/read handlers Validate inputs, enforce ownership, perform queries Spacefast server runtime
Estimates table Stores the calculations Managed database
구성 요소 목적 실행 위치
저장 버튼 및 기록 요청을 보내고 결과를 표시 브라우저
서버 측 저장/읽기 핸들러 입력 검증, 소유권 적용, 쿼리 수행 Spacefast 서버 런타임
추정 테이블 계산 저장 관리형 데이터베이스

A suitable record might contain an internal ID, owner ID, participant count, duration, hourly cost, calculated total and creation date. The server should calculate the total itself rather than trusting a value supplied by the browser.

적합한 레코드에는 내부 ID, 소유자 ID, 참가자 수, 소요 시간, 시간당 비용, 계산된 총계 및 생성 날짜가 포함될 수 있습니다. 서버는 브라우저가 제공한 값을 신뢰하는 대신 자체적으로 총계를 계산해야 합니다.

Step 4 — Test the database in the correct order

4단계 — 올바른 순서로 데이터베이스 테스트하기

  1. Save a meeting with 6 people, 45 minutes, €40/hour. Expect €180 in the history.
  2. 6명, 45분, 1시간에 40유로(€40)로 회의를 저장하세요. 기록에서 €180이 예상됩니다.
  3. Reload the page. The saved record should still be visible.
  4. 페이지를 다시 로드하세요. 저장된 기록이 여전히 보여야 합니다.
  5. Save a second meeting: 3 people, 120 minutes, €50/hour. Expect €300.
  6. 두 번째 회의를 저장하세요: 3명, 120분, 1시간에 50유로(€50). €300이 예상됩니다.
  7. Sign in as another test user. That user must not see the first user's private records.
  8. 다른 테스트 사용자로 로그인하세요. 해당 사용자는 첫 번째 사용자의 개인 기록을 볼 수 없어야 합니다.
  9. Try invalid inputs and confirm the server rejects them.
  10. 잘못된 입력을 시도하고 서버가 이를 거부하는지 확인하세요.
  11. Redeploy a harmless interface change and verify the saved records remain.
  12. 무해한 인터페이스 변경을 다시 배포하고 저장된 기록이 유지되는지 확인하세요.
  13. Inspect the available backup/export procedure before treating the project as production-ready.
  14. 프로젝트를 프로덕션 준비 완료로 간주하기 전에 사용 가능한 백업/내보내기 절차를 확인하세요.

This is a test plan, not a claim that we have already executed it on Spacefast. Record the actual results and error messages during the real deployment.

이것은 테스트 계획이며, 저희가 Spacefast에서 이미 실행했다는 주장이 아닙니다. 실제 배포 중에 실제 결과와 오류 메시지를 기록하세요.

Step 5 — What about API keys for other services?

5단계 — 다른 서비스에 대한 API 키는 어떻습니까?

The database connection is only one kind of secret. If your application later calls an external email, payment or AI service, that provider may give you an API key.

데이터베이스 연결은 단 하나의 종류의 비밀 정보입니다. 앱이 나중에 외부 이메일, 결제 또는 AI 서비스를 호출한다면, 해당 제공자로부터 API 키를 받을 수 있습니다.

Do not put it in HTML, browser JavaScript, GitHub or a screenshot. Spacefast documents server-side environment variables for secrets; the server accesses the key without returning it to the browser. Check the current environment-variable documentation and review what permissions your AI agent receives.

HTML, 브라우저 JavaScript, GitHub 또는 스크린샷에 넣지 마세요. Spacefast는 비밀 정보에 대한 서버 측 환경 변수를 문서화합니다. 서버는 브라우저에 키를 반환하지 않고 키에 접근합니다. 현재 환경 변수 문서를 확인하고 AI 에이전트가 받는 권한을 검토하세요.

Step 6 — Know when a database is unnecessary

6단계 — 데이터베이스가 불필요한 경우 알기

A calculator that only displays a result needs no database. Add persistence only when you need saved history, accounts, shared records or similar features. Every database adds responsibilities: validation, access control, backups, retention and recovery.

결과만 표시하는 계산기에는 데이터베이스가 필요 없습니다. 저장된 기록, 계정, 공유 기록 또는 유사한 기능이 필요할 때만 지속성을 추가하세요. 모든 데이터베이스는 검증, 접근 통제, 백업, 보존 및 복구 책임을 추가로 요구합니다.

7. What do “20 Spaces” actually mean?

7. “20 Spaces”는 정말 무엇을 의미하나요?

A Space is a hosted project, such as a site, app or prototype. It is not an AI prompt, and the allowance is not 20 new projects per month.

Space은 호스팅되는 프로젝트입니다, 예를 들어 사이트, 앱 또는 프로토타입입니다. 이것은 AI 프롬프트가 아니며, 할당량은 월 20개의 새 프로젝트가 아닙니다.

For example, one landing page + one calculator + one prototype = three Spaces. Editing and republishing the calculator does not create a new Space unless you deliberately create another project.

예를 들어, 하나의 랜딩 페이지 + 하나의 계산기 + 하나의 프로토타입 = 3개의 Space입니다. 계산기를 편집하고 다시 출판해도, 다른 프로젝트를 의도적으로 만들지 않는 한 새 Space를 만들지는 않습니다.

The detailed Spacefast pricing documentation describes these plan allowances:

상세한 Spacefast 요금 문서는 이러한 계획 할당량을 설명합니다:

Plan Listed base price Spaces Storage per Space
Personal $0 20 1 GB
Go $5/month 100 10 GB
Pro $15/month 500 25 GB
Enterprise Custom Custom Contract-based
계획 명시된 기본 가격 Space Space당 저장소
개인 $0 20 1 GB
Go $5/월 100 10 GB
Pro $15/월 500 25 GB
엔터프라이즈 사용자 지정 사용자 지정 계약 기반

A separate limit matters: usage-based resources, such as compute or traffic, can have monthly allowances or charges. The number of Spaces does not mean unlimited resource usage. The detailed documentation describes monthly usage credits, which reset rather than accumulate.

별도의 제한 사항이 중요합니다: 사용량 기반 리소스(예: 컴퓨트 또는 트래픽)는 월간 할당량 또는 요금이 있을 수 있습니다. Space 수는 무제한 리소스 사용을 의미하지 않습니다. 상세 문서는 월간 사용 크레딧을 설명하며, 이는 누적되는 것이 아니라 재설정됩니다.

Pricing pages and launch materials may not always use the same plan names or allowances. Check the live billing dashboard and current terms before upgrading or relying on a specific limit.

요금 페이지와 출시 자료가 항상 동일한 계획 이름이나 할당량을 사용하지는 않습니다. 업그레이드하거나 특정 제한에 의존하기 전에 실시간 결제 대시보드와 현재 약관을 확인하세요.

8. Spacefast or conventional hosting?

8. Spacefast 또는 일반 호스팅?

Spacefast is interesting because it aims to reduce the gap between creating a project with AI and publishing it. Conventional hosting may offer more direct server control, but often requires additional setup.

Spacefast는 AI로 프로젝트를 만들고 출판하는 사이의 격차를 줄이려는 목표 덕분에 흥미롭습니다. 일반 호스팅은 더 직접적인 서버 제어를 제공할 수 있지만 종종 추가 설정이 필요합니다.

For a real project, compare supported frameworks, deployment and rollback, access to logs, backup/export, custom domains, security, data portability and total costs—not only the advertised subscription price.

실제 프로젝트에는 지원되는 프레임워크, 배포 및 롤백, 로그 접근, 백업/내보내기, 사용자 지정 도메인, 보안, 데이터 이동성 및 총 비용을 비교하세요. 광고된 구독 가격만이 아니라요.

Our small calculator is a useful first experiment precisely because we can check whether it works. The database extension adds a more meaningful second test: can the platform preserve data safely across updates?

우리의 작은 계산기는 정말로 작동하는지 확인할 수 있기 때문에 정말 유용한 첫 번째 실험입니다. 데이터베이스 확장은 더 의미 있는 두 번째 테스트를 추가합니다: 플랫폼이 업데이트 간에 데이터를 안전하게 보존할 수 있는가?

Frequently asked questions

자주 묻는 질문

Can I use my existing AI assistant?

기존 AI 어시스턴트를 사용할 수 있나요?

Spacefast is presented as working with existing AI development tools. Verify the current supported-client list and connection instructions for your chosen assistant.

Spacefast는 기존 AI 개발 도구와 작동한다고 제시됩니다. 선택한 어시스턴트에 대한 현재 지원 클라이언트 목록과 연결 지침을 확인하세요.

Does every application need MySQL?

모든 앱에 MySQL이 필요한가요?

No. Our first calculator is static. The saved-history version requires persistent storage and server-side access controls.

아니요. 우리의 첫 번째 계산기는 정적입니다. 저장 기록 버전에는 지속 저장 및 서버 측 접근 통제가 필요합니다.

Do I have to enter MySQL credentials in JavaScript?

JavaScript에 MySQL 자격 증명을 입력해야 하나요?

No. Never put database credentials in browser code. For supported Spacefast runtimes, use the platform-managed server-side database binding.

아니요. 데이터베이스 자격 증명을 브라우저 코드에 넣지 마세요. 지원되는 Spacefast 런타임에는 플랫폼 관리 서버 측 데이터베이스 바인딩을 사용하세요.

Are 20 Spaces 20 prompts each month?

20개의 Space은 매달 20개의 프롬프트인가요?

No. They represent hosted projects. Monthly resource usage is tracked separately.

아니요. 이는 호스팅되는 프로젝트를 나타냅니다. 월간 리소스 사용량은 별도로 추적됩니다.

Can I use it for a client project?

고객 프로젝트에 사용할 수 있나요?

Review the current commercial terms, privacy requirements, authentication, backup options and actual resource limits before promising a production deployment.

프로덕션 배포를 약속하기 전에 현재 상업적 조건, 개인정보 보호 요구 사항, 인증, 백업 옵션 및 실제 리소스 제한을 검토하세요.


Try Spacefast: The Spacefast service is an option to investigate if you want to publish an AI-built application. Affiliate links on CeiKay may generate a commission at no additional cost to you. This guide is an explanatory workflow, not an independently completed hosting benchmark.

Spacefast 사용해 보세요: AI로 만든 앱을 출판하고 싶다면 Spacefast 서비스를 조사해 보세요. CeiKay의 제휴 링크는 추가 비용 없이도 수수료를 생성할 수 있습니다. 이 가이드는 설명 워크플로이며, 독립적으로 완료된 호스팅 벤치마크가 아닙니다.