The API server supports Hot Module Replacement (HMR), so it automatically restarts when code changes.
In the local development environment, the API server integrates and serves the Web app. It
connects the Web directoryโs Vite Dev Server as middleware to the API server, allowing everything
to run on a single port.
Keep this terminal window open. It maintains the running API server.
3
Run Web Server (Optional)
If you want to focus on Web development or utilize Viteโs full features, open a new terminal window and start the development server separately in the web directory:
cd myapp/packages/webpnpm dev
Vite startup logs after running pnpm dev in web directory
When the Vite development server starts, youโll see the following message:
VITE v5.x.x ready in xxx ms โ Local: http://localhost:5173/ โ Network: http://192.168.x.x:5173/
If you run the Web server separately, you can access the frontend at http://localhost:5173. The Web server automatically proxies /api/* path requests to the API server (localhost:34900).
Two Development Modes
Integrated mode (recommended): Run only API server โ Access everything at localhost:34900
Separated mode: Run API + Web separately โ API at localhost:34900, Web at localhost:5173
The integrated mode is sufficient for most cases. Use separated mode only when focusing on Web development.
Verify Access
Integrated Mode (API server only)
You can access the following URLs in your browser:
To stop the servers when youโre done developing:
API Server (and Web server if running): Press Ctrl + C in each terminal to stop.
Database: Run the following command in the api directory:
pnpm docker:down
docker:down runs docker compose down, which removes the container. The compose file does not
mount a named volume for the PostgreSQL data, so the next pnpm docker:up creates a new container
and runs the init script again on empty databases. To stop the database and keep its data, run
docker compose --env-file .env -f database/docker-compose.yml stop instead.
Next Steps
Your development environment is ready! Now learn Sonamuโs core features through the following guides:
Creating Your First Entity
Use Sonamu UI to create your first entity and define the database schema.
API Development
Create REST APIs based on entities and implement business logic.
Frontend Integration
Use the auto-generated service layer to call APIs from the frontend.
Project Structure
Understand the directory structure and key files of a Sonamu project.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"๐ฒ Sonamu","colors":{"primary":"#10b981","light":"#34d399","dark":"#059669"},"favicon":"https://mintcdn.com/cartanova-7788888c/E57bS7-HhcL25jvo/logo/pinetree.png?fit=max\u0026auto=format\u0026n=E57bS7-HhcL25jvo\u0026q=85\u0026s=6df2158ca49006203bcc56eeee205650","appearance":{"default":"light"},"styling":{"latex":false},"navigation":{"languages":[{"language":"ko","default":true,"href":"ko/getting-started/introduction"},{"language":"en","default":false,"href":"en/getting-started/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cartanova-7788888c","hasAudioNarration":false,"actualSubdomain":"cartanova-7788888c","customDomains":["sonamu.cartanova.ai"],"gitSource":{"type":"github","owner":"cartanova-ai","repo":"sonamu","deployBranch":"master","contentDirectory":"modules/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b03ff1ce22a015b940691c5","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"en","tag":"Advanced Features","count":48},{"language":"ko","tag":"๊ณ ๊ธ ๊ธฐ๋ฅ","count":48},{"language":"en","tag":"API Reference","count":26},{"language":"ko","tag":"API ๋ ํผ๋ฐ์ค","count":26},{"language":"en","tag":"Database","count":23},{"language":"ko","tag":"๋ฐ์ดํฐ๋ฒ ์ด์ค","count":23},{"language":"en","tag":"Frontend Integration","count":21},{"language":"en","tag":"Tools \u0026 CLI","count":21},{"language":"ko","tag":"ํ๋ก ํธ์๋ ํตํฉ","count":21},{"language":"ko","tag":"๋๊ตฌ \u0026 CLI","count":21},{"language":"en","tag":"API Development","count":20},{"language":"en","tag":"Configuration","count":20},{"language":"ko","tag":"API ๊ฐ๋ฐ","count":20},{"language":"ko","tag":"์ค์ ","count":20},{"language":"en","tag":"Core Concepts","count":19},{"language":"ko","tag":"ํต์ฌ ๊ฐ๋ ","count":19},{"language":"en","tag":"Testing","count":15},{"language":"ko","tag":"ํ ์คํ ","count":15},{"language":"en","tag":"Troubleshooting","count":13},{"language":"ko","tag":"๋ฌธ์ ํด๊ฒฐ","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"snippets/style.css","content":".nav-logo{font-size:24px}"}]}
{"page":{"pagePath":"en/getting-started/quick-start","slug":"/en/getting-started/quick-start","pageMetadata":{"title":"Quick Start","description":"Creating your first project - pnpm create sonamu","href":"/en/getting-started/quick-start"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creating your first project - pnpm create sonamu\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,Check,CodeBlock,Frame,Heading,Info,Note,OptimizedImage,Step,Steps,Table,Tip,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Check)_missingMdxReference(`Check`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This guide walks you through the steps to run the development environment after installing a Sonamu project.`}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.p,{children:[`You must have completed the `,_jsx(_components.a,{href:`/en/getting-started/installation`,children:`Installation`}),` guide and have a project created.`]}),`\n`,_jsx(Heading,{level:`2`,id:`running-the-development-environment`,children:`Running the Development Environment`}),`\n`,_jsx(_components.p,{children:`The Sonamu development environment consists of three servers:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PostgreSQL`}),` - Database`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Server`}),` - Backend REST API (includes Sonamu UI)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Web Server`}),` - Frontend application`]}),`\n`]}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Start Database`,children:[_jsxs(_components.p,{children:[`Navigate to your projectโs `,_jsx(_components.code,{children:`api`}),` directory and start the PostgreSQL container:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` myapp/packages/api`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` docker:up`})]}),`\n`]})})}),_jsx(Frame,{caption:`Success message and container startup logs after running docker:up`,children:_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,controls:true,className:`mint-w-full mint-rounded-xl`,src:`https://mintcdn.com/cartanova-7788888c/mRzLpig-R41-Dqkz/images/quickstart1.mp4?fit=max\u0026auto=format\u0026n=mRzLpig-R41-Dqkz\u0026q=85\u0026s=8efa41dc7b5be7477a56478dc0c73ebf`,\"data-path\":`images/quickstart1.mp4`})}),_jsx(_components.p,{children:`This command uses Docker Compose to run the PostgreSQL database in the background.`}),_jsx(Tip,{children:_jsxs(_components.p,{children:[`To verify the database is running correctly, you can check the container status with the `,_jsx(_components.code,{children:`docker ps`}),` command.`]})}),_jsx(Frame,{caption:`docker ps execution result (PostgreSQL container in Up state)`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cartanova-7788888c/mRzLpig-R41-Dqkz/images/quickstart2.png?fit=max\u0026auto=format\u0026n=mRzLpig-R41-Dqkz\u0026q=85\u0026s=1437eab42da7e6fa961f090cd6aae929`,alt:`docker ps result`,\"data-og-width\":`3386`,width:`3386`,\"data-og-height\":`272`,height:`272`,\"data-path\":`images/quickstart2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cartanova-7788888c/mRzLpig-R41-Dqkz/images/quickstart2.png?w=280\u0026fit=max\u0026auto=format\u0026n=mRzLpig-R41-Dqkz\u0026q=85\u0026s=0ce6ff89cba04cd3186a76da49ff39c5 280w, https://mintcdn.com/cartanova-7788888c/mRzLpig-R41-Dqkz/images/quickstart2.png?w=560\u0026fit=max\u0026auto=format\u0026n=mRzLpig-R41-Dqkz\u0026q=85\u0026s=a2ac30ad72abdf471600fd2a8e3d50ac 560w, https://mintcdn.com/cartanova-7788888c/mRzLpig-R41-Dqkz/images/quickstart2.png?w=840\u0026fit=max\u0026auto=format\u0026n=mRzLpig-R41-Dqkz\u0026q=85\u0026s=b3f20d0ee305dc6df26fc1f68dc4cb77 840w, https://mintcdn.com/cartanova-7788888c/mRzLpig-R41-Dqkz/images/quickstart2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=mRzLpig-R41-Dqkz\u0026q=85\u0026s=ae8420c6373cdd5afedfa72a7889ee87 1100w, https://mintcdn.com/cartanova-7788888c/mRzLpig-R41-Dqkz/images/quickstart2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=mRzLpig-R41-Dqkz\u0026q=85\u0026s=fb5242b8c12b0c75067060d59bf639e2 1650w, https://mintcdn.com/cartanova-7788888c/mRzLpig-R41-Dqkz/images/quickstart2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=mRzLpig-R41-Dqkz\u0026q=85\u0026s=a3bfd0e86afbb85dc29f5a50d0594993 2500w`})})]}),_jsxs(Step,{title:`Run API Server`,children:[_jsxs(_components.p,{children:[`In the same `,_jsx(_components.code,{children:`api`}),` directory, start the development server:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev`})]}),`\n`]})})}),_jsx(Frame,{caption:`Server startup logs after running pnpm dev`,children:_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,controls:true,className:`mint-w-full mint-rounded-xl`,src:`https://mintcdn.com/cartanova-7788888c/mRzLpig-R41-Dqkz/images/quickstart3.mp4?fit=max\u0026auto=format\u0026n=mRzLpig-R41-Dqkz\u0026q=85\u0026s=f52f4ec8a6deafb4c9bfe6a773911cee`,\"data-path\":`images/quickstart3.mp4`})}),_jsx(_components.p,{children:`When the server starts successfully, youโll see the following message:`}),_jsx(CodeBlock,{numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`๐ฒ Sonamu v1.x.x`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`โ Config loaded (...)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`โ DB`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` โธ development @ localhost:5432/myapp_development`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`โ Sonamu ready (...)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_components.p,{children:`This single command runs everything:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Web App`}),`: `,_jsx(_components.a,{href:`http://localhost:34900`,children:`http://localhost:34900`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API Endpoints`}),`: `,_jsx(_components.a,{href:`http://localhost:34900/api`,children:`http://localhost:34900/api`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sonamu UI`}),`: `,_jsx(_components.a,{href:`http://localhost:34900/sonamu-ui`,children:`http://localhost:34900/sonamu-ui`})]}),`\n`]}),_jsx(_components.p,{children:`The API server supports Hot Module Replacement (HMR), so it automatically restarts when code changes.`}),_jsx(Note,{children:_jsx(_components.p,{children:`In the local development environment, the API server integrates and serves the Web app. It\nconnects the Web directoryโs Vite Dev Server as middleware to the API server, allowing everything\nto run on a single port.`})}),_jsx(Warning,{children:`Keep this terminal window open. It maintains the running API server.`})]}),_jsxs(Step,{title:`Run Web Server (Optional)`,children:[_jsxs(_components.p,{children:[`If you want to focus on Web development or utilize Viteโs full features, open a `,_jsx(_components.strong,{children:`new terminal window`}),` and start the development server separately in the `,_jsx(_components.code,{children:`web`}),` directory:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` myapp/packages/web`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dev`})]}),`\n`]})})}),_jsx(Frame,{caption:`Vite startup logs after running pnpm dev in web directory`,children:_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,controls:true,className:`mint-w-full mint-rounded-xl`,src:`https://mintcdn.com/cartanova-7788888c/wk-O_9zBoKGthXNV/images/quickstart4.mp4?fit=max\u0026auto=format\u0026n=wk-O_9zBoKGthXNV\u0026q=85\u0026s=c2dd8542919b52644b0be5a2ef415b20`,\"data-path\":`images/quickstart4.mp4`})}),_jsx(_components.p,{children:`When the Vite development server starts, youโll see the following message:`}),_jsx(CodeBlock,{numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` VITE v5.x.x ready in xxx ms`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` โ Local: http://localhost:5173/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` โ Network: http://192.168.x.x:5173/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`If you run the Web server separately, you can access the frontend at `,_jsx(_components.a,{href:`http://localhost:5173`,children:`http://localhost:5173`}),`. The Web server automatically proxies `,_jsx(_components.code,{children:`/api/*`}),` path requests to the API server (localhost:34900).`]}),_jsxs(Info,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Two Development Modes`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Integrated mode`}),` (recommended): Run only API server โ Access everything at `,_jsx(_components.code,{children:`localhost:34900`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Separated mode`}),`: Run API + Web separately โ API at `,_jsx(_components.code,{children:`localhost:34900`}),`, Web at `,_jsx(_components.code,{children:`localhost:5173`})]}),`\n`]}),_jsx(_components.p,{children:`The integrated mode is sufficient for most cases. Use separated mode only when focusing on Web development.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`verify-access`,children:`Verify Access`}),`\n`,_jsx(Heading,{level:`3`,id:`integrated-mode-api-server-only`,children:`Integrated Mode (API server only)`}),`\n`,_jsx(_components.p,{children:`You can access the following URLs in your browser:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Service`}),_jsx(_components.th,{children:`URL`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Web App`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`http://localhost:34900`,children:`http://localhost:34900`})}),_jsx(_components.td,{children:`Frontend application`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`API Server`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`http://localhost:34900/api`,children:`http://localhost:34900/api`})}),_jsx(_components.td,{children:`REST API endpoints`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sonamu UI`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`http://localhost:34900/sonamu-ui`,children:`http://localhost:34900/sonamu-ui`})}),_jsx(_components.td,{children:`Entity management interface`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`separated-mode-both-api-+-web-servers-running`,children:`Separated Mode (Both API + Web servers running)`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Service`}),_jsx(_components.th,{children:`URL`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Web App`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`http://localhost:5173`,children:`http://localhost:5173`})}),_jsx(_components.td,{children:`Frontend application`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`API Server`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`http://localhost:34900/api`,children:`http://localhost:34900/api`})}),_jsx(_components.td,{children:`REST API endpoints`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Sonamu UI`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`http://localhost:34900/sonamu-ui`,children:`http://localhost:34900/sonamu-ui`})}),_jsx(_components.td,{children:`Entity management interface`})]})]})]}),`\n`,_jsx(Check,{children:`Access the Web app to verify the Sonamu application is running correctly.`}),`\n`,_jsx(Heading,{level:`3`,id:`sonamu-ui-features`,children:`Sonamu UI Features`}),`\n`,_jsxs(_components.p,{children:[`When you access `,_jsx(_components.a,{href:`http://localhost:34900/sonamu-ui`,children:`http://localhost:34900/sonamu-ui`}),` in your browser, you can perform the following tasks:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Create and edit entities`}),`\n`,_jsx(_components.li,{children:`Manage database migrations`}),`\n`,_jsx(_components.li,{children:`View API endpoints`}),`\n`,_jsx(_components.li,{children:`Visualize database schema`}),`\n`]}),`\n`,_jsx(Frame,{caption:`Sonamu UI Main Screen`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cartanova-7788888c/wk-O_9zBoKGthXNV/images/sonamuUI1.png?fit=max\u0026auto=format\u0026n=wk-O_9zBoKGthXNV\u0026q=85\u0026s=637d6e1a97b920da63a7409013c92159`,alt:`Sonamu UI`,\"data-og-width\":`3456`,width:`3456`,\"data-og-height\":`1916`,height:`1916`,\"data-path\":`images/sonamuUI1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cartanova-7788888c/wk-O_9zBoKGthXNV/images/sonamuUI1.png?w=280\u0026fit=max\u0026auto=format\u0026n=wk-O_9zBoKGthXNV\u0026q=85\u0026s=2e9d12fd1b418d9900f5706c80f1acf4 280w, https://mintcdn.com/cartanova-7788888c/wk-O_9zBoKGthXNV/images/sonamuUI1.png?w=560\u0026fit=max\u0026auto=format\u0026n=wk-O_9zBoKGthXNV\u0026q=85\u0026s=544542522602cbfa32def7f75096d0e2 560w, https://mintcdn.com/cartanova-7788888c/wk-O_9zBoKGthXNV/images/sonamuUI1.png?w=840\u0026fit=max\u0026auto=format\u0026n=wk-O_9zBoKGthXNV\u0026q=85\u0026s=7f893ccdad2cfc2ec8c47d8b9c9a63d7 840w, https://mintcdn.com/cartanova-7788888c/wk-O_9zBoKGthXNV/images/sonamuUI1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=wk-O_9zBoKGthXNV\u0026q=85\u0026s=6049cdc80a6b062d9e800e0e1c5457bd 1100w, https://mintcdn.com/cartanova-7788888c/wk-O_9zBoKGthXNV/images/sonamuUI1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=wk-O_9zBoKGthXNV\u0026q=85\u0026s=818cc82b3f3c993a6e8cb9280e8139b7 1650w, https://mintcdn.com/cartanova-7788888c/wk-O_9zBoKGthXNV/images/sonamuUI1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=wk-O_9zBoKGthXNV\u0026q=85\u0026s=a9aef4b337287cb5e7819f8dcb3648c8 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`stopping-servers`,children:`Stopping Servers`}),`\n`,_jsx(_components.p,{children:`To stop the servers when youโre done developing:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`API Server`}),` (and Web server if running): Press `,_jsx(_components.code,{children:`Ctrl + C`}),` in each terminal to stop.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Database`}),`: Run the following command in the `,_jsx(_components.code,{children:`api`}),` directory:`]}),`\n`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` docker:down`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`docker:down`}),` runs `,_jsx(_components.code,{children:`docker compose down`}),`, which removes the container. The compose file does not\nmount a named volume for the PostgreSQL data, so the next `,_jsx(_components.code,{children:`pnpm docker:up`}),` creates a new container\nand runs the init script again on empty databases. To stop the database and keep its data, run\n`,_jsx(_components.code,{children:`docker compose --env-file .env -f database/docker-compose.yml stop`}),` instead.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next Steps`}),`\n`,_jsx(_components.p,{children:`Your development environment is ready! Now learn Sonamuโs core features through the following guides:`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Creating Your First Entity`,icon:`database`,href:`/en/getting-started/first-entity`,children:_jsx(_components.p,{children:`Use Sonamu UI to create your first entity and define the database schema.`})}),_jsx(Card,{title:`API Development`,icon:`code`,href:`/en/api-development/creating-apis`,children:_jsx(_components.p,{children:`Create REST APIs based on entities and implement business logic.`})}),_jsx(Card,{title:`Frontend Integration`,icon:`browser`,href:`/en/frontend-integration/generated-services/how-services-work`,children:_jsx(_components.p,{children:`Use the auto-generated service layer to call APIs from the frontend.`})}),_jsx(Card,{title:`Project Structure`,icon:`folder`,href:`/en/getting-started/project-structure`,children:_jsx(_components.p,{children:`Understand the directory structure and key files of a Sonamu project.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Quick Start","description":"Creating your first project - pnpm create sonamu","href":"/en/getting-started/quick-start"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Running the Development Environment","slug":"running-the-development-environment","depth":2,"children":[]},{"title":"Verify Access","slug":"verify-access","depth":2,"children":[{"title":"Integrated Mode (API server only)","slug":"integrated-mode-api-server-only","depth":3,"children":[]},{"title":"Separated Mode (Both API + Web servers running)","slug":"separated-mode-both-api-+-web-servers-running","depth":3,"children":[]},{"title":"Sonamu UI Features","slug":"sonamu-ui-features","depth":3,"children":[]}]},{"title":"Stopping Servers","slug":"stopping-servers","depth":2,"children":[]},{"title":"Next Steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-w-full {\n width: 100%\n}\n.mint-rounded-xl {\n border-radius: 0.75rem\n}","subdomain":"cartanova-7788888c","siteName":"๐ฒ Sonamu","title":"Quick Start - ๐ฒ Sonamu","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"ko":{"href":"/ko/getting-started/quick-start","matchLevel":1},"en":{"href":"/en/getting-started/quick-start","matchLevel":0}}},"lastModified":"2026-10-21T06:17:52.032Z","originalFileLocation":"en/getting-started/quick-start.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creating your first project - pnpm create sonamu\">\u003cmeta data-mint-head name=\"application-name\" content=\"๐ฒ Sonamu\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cartanova-7788888c/1jU4kV0AnHiNGkmD/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cartanova-7788888c/1jU4kV0AnHiNGkmD/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cartanova-7788888c/1jU4kV0AnHiNGkmD/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cartanova-7788888c/1jU4kV0AnHiNGkmD/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cartanova-7788888c/1jU4kV0AnHiNGkmD/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cartanova-7788888c/1jU4kV0AnHiNGkmD/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cartanova-7788888c/1jU4kV0AnHiNGkmD/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cartanova-7788888c/1jU4kV0AnHiNGkmD/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cartanova-7788888c/1jU4kV0AnHiNGkmD/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Quick Start - ๐ฒ Sonamu\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creating your first project - pnpm create sonamu\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"๐ฒ Sonamu\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://sonamu.cartanova.ai/en/getting-started/quick-start\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cartanova-7788888c.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Quick+Start\u0026amp;description=Creating+your+first+project+-+pnpm+create+sonamu\u0026amp;theme=91c1975114f14c1fc39db6e5\u0026amp;signature=efea6b3df270429bfb04d3140c962e56a4ae6532a1fb7b7c51409091e1c20386\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Quick Start - ๐ฒ Sonamu\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creating your first project - pnpm create sonamu\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cartanova-7788888c.mintlify.site/_mintlify/api/og/v2?division=Get+Started\u0026amp;title=Quick+Start\u0026amp;description=Creating+your+first+project+-+pnpm+create+sonamu\u0026amp;theme=91c1975114f14c1fc39db6e5\u0026amp;signature=efea6b3df270429bfb04d3140c962e56a4ae6532a1fb7b7c51409091e1c20386\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cartanova-7788888c/1jU4kV0AnHiNGkmD/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"๐ฒ Sonamu\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#10b981\">\u003clink data-mint-head rel=\"canonical\" href=\"https://sonamu.cartanova.ai/en/getting-started/quick-start\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/getting-started/quick-start.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://sonamu.cartanova.ai/en/getting-started/quick-start\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://sonamu.cartanova.ai/ko/getting-started/quick-start\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://sonamu.cartanova.ai/ko/getting-started/quick-start\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://sonamu.cartanova.ai/#organization\",\"name\":\"๐ฒ Sonamu\",\"url\":\"https://sonamu.cartanova.ai\"},{\"@type\":\"WebSite\",\"@id\":\"https://sonamu.cartanova.ai#website\",\"name\":\"๐ฒ Sonamu\",\"url\":\"https://sonamu.cartanova.ai\",\"publisher\":{\"@id\":\"https://sonamu.cartanova.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://sonamu.cartanova.ai/en/getting-started/quick-start#webpage\",\"url\":\"https://sonamu.cartanova.ai/en/getting-started/quick-start\",\"name\":\"Quick Start\",\"description\":\"Creating your first project - pnpm create sonamu\",\"dateModified\":\"2026-10-21T06:17:52.032Z\",\"isPartOf\":{\"@id\":\"https://sonamu.cartanova.ai#website\"},\"breadcrumb\":{\"@id\":\"https://sonamu.cartanova.ai/en/getting-started/quick-start#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://sonamu.cartanova.ai/en/getting-started/quick-start#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Get Started\",\"item\":\"https://sonamu.cartanova.ai/en/getting-started/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quick Start\",\"item\":\"https://sonamu.cartanova.ai/en/getting-started/quick-start\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://sonamu.cartanova.ai/en/getting-started/quick-start#article\",\"headline\":\"Quick Start\",\"name\":\"Quick Start\",\"description\":\"Creating your first project - pnpm create sonamu\",\"url\":\"https://sonamu.cartanova.ai/en/getting-started/quick-start\",\"mainEntityOfPage\":{\"@id\":\"https://sonamu.cartanova.ai/en/getting-started/quick-start#webpage\"},\"dateModified\":\"2026-10-21T06:17:52.032Z\",\"publisher\":{\"@id\":\"https://sonamu.cartanova.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://sonamu.cartanova.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"๐ฒ Sonamu\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"๐ฒ Sonamu\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/getting-started/quick-start.md","siteName":"๐ฒ Sonamu","nav":{"global":null,"languages":[{"language":"ko","default":true,"pages":[{"title":"ko","href":"/ko/getting-started/quick-start"}]},{"language":"en","default":false,"groups":[{"group":"Get Started","icon":"rocket","pages":[{"title":"Introduction to Sonamu","href":"/en/getting-started/introduction"},{"title":"Seamless DX","href":"/en/getting-started/seamless-dx"},{"title":"Installation","description":"Installing Sonamu and setting up the development environment","href":"/en/getting-started/installation"},{"title":"Quick Start","href":"/en/getting-started/quick-start"},{"title":"Project Structure","description":"Directory structure and key files of a Sonamu project","href":"/en/getting-started/project-structure"},{"title":"Creating Your First Entity","href":"/en/getting-started/first-entity"},{"title":"Development Workflow","href":"/en/getting-started/development-workflow"},{"title":"Upgrading","href":"/en/getting-started/upgrading"}]},{"group":"Core Concepts","icon":"lightbulb","pages":[{"title":"How Sonamu Works","href":"/en/core-concepts/how-sonamu-works"},{"group":"Entity","pages":[{"title":"Defining Entities","href":"/en/core-concepts/entity/defining-entities"},{"title":"Using Sonamu UI","href":"/en/core-concepts/entity/using-sonamu-ui"},{"title":"Field Types","href":"/en/core-concepts/entity/field-types"},{"title":"Relations","href":"/en/core-concepts/entity/relations"},{"title":"Enums","href":"/en/core-concepts/entity/enums"}]},{"group":"Model","pages":[{"title":"What is a Model?","href":"/en/core-concepts/model/what-is-model"},{"title":"Creating Models","href":"/en/core-concepts/model/creating-models"},{"title":"@api Decorator","href":"/en/core-concepts/model/api-decorator"},{"title":"Business Logic","href":"/en/core-concepts/model/business-logic"},{"title":"BaseModel Methods","href":"/en/core-concepts/model/basemodel-methods"}]},{"group":"Auto Generation","pages":[{"title":"Generated Files","href":"/en/core-concepts/auto-generation/what-gets-generated"},{"title":"Syncer","href":"/en/core-concepts/auto-generation/syncer"},{"title":"When Files Regenerate","href":"/en/core-concepts/auto-generation/when-files-regenerate"},{"title":"Customizing Generated Code","href":"/en/core-concepts/auto-generation/customizing-generated-code"}]},{"group":"Type System","pages":[{"title":"Entity Types","href":"/en/core-concepts/type-system/entity-types"},{"title":"Generated Types","href":"/en/core-concepts/type-system/generated-types"},{"title":"E2E Type Safety","href":"/en/core-concepts/type-system/e2e-type-safety"},{"title":"Zod Validation","href":"/en/core-concepts/type-system/zod-validation"}]}]},{"group":"Database","icon":"database","pages":[{"group":"Puri Query Builder","pages":[{"title":"Basic Queries","href":"/en/database/puri/basic-queries"},{"title":"Joins","href":"/en/database/puri/joins"},{"title":"Aggregate Functions","href":"/en/database/puri/aggregations"},{"title":"Raw Queries","href":"/en/database/puri/raw-queries"},{"title":"Type Safety","href":"/en/database/puri/type-safety"},{"title":"Advanced Patterns","href":"/en/database/puri/advanced-patterns"}]},{"group":"Subset","pages":[{"title":"What are Subsets?","href":"/en/database/subsets/what-are-subsets"},{"title":"Defining Subsets","href":"/en/database/subsets/defining-subsets"},{"title":"Using Subsets","href":"/en/database/subsets/using-subsets"},{"title":"Nested Relations","href":"/en/database/subsets/nested-relations"}]},{"group":"UpsertBuilder","pages":[{"title":"Basic Usage","href":"/en/database/upsert-builder/basic-usage"},{"title":"Relational Data","href":"/en/database/upsert-builder/relations"},{"title":"Batch Operations","href":"/en/database/upsert-builder/batch-operations"},{"title":"Advanced Patterns","href":"/en/database/upsert-builder/advanced-patterns"}]},{"group":"Migrations","pages":[{"title":"How Migrations Work","href":"/en/database/migrations/how-migrations-work"},{"title":"Creating Migrations","href":"/en/database/migrations/creating-migrations"},{"title":"Running Migrations","href":"/en/database/migrations/running-migrations"},{"title":"Rolling Back","href":"/en/database/migrations/rolling-back"},{"title":"Migration Strategies","href":"/en/database/migrations/migration-strategies"},{"title":"Production Approval","href":"/en/database/migrations/production-approval"}]},{"group":"Transactions","pages":[{"title":"@transactional Decorator","href":"/en/database/transactions/transactional-decorator"},{"title":"Manual Transactions","href":"/en/database/transactions/manual-transactions"},{"title":"Best Practices","href":"/en/database/transactions/best-practices"}]}]},{"group":"API Development","icon":"code","pages":[{"group":"Creating APIs","pages":[{"title":"@api Decorator","href":"/en/api-development/creating-apis/api-decorator"},{"title":"HTTP Methods","href":"/en/api-development/creating-apis/http-methods"},{"title":"Parameters","href":"/en/api-development/creating-apis/parameters"},{"title":"Return Types","href":"/en/api-development/creating-apis/return-types"}]},{"group":"Frame","pages":[{"title":"What are Frames?","href":"/en/api-development/frames/what-are-frames"},{"title":"Creating Frames","href":"/en/api-development/frames/creating-frames"},{"title":"Use Cases","href":"/en/api-development/frames/use-cases"}]},{"group":"Context","pages":[{"title":"SonamuContext","href":"/en/api-development/context/sonamu-context"},{"title":"Getting Context","href":"/en/api-development/context/getting-context"},{"title":"Custom Context","href":"/en/api-development/context/custom-context"}]},{"group":"Validation","pages":[{"title":"Automatic Validation","href":"/en/api-development/validation/automatic-validation"},{"title":"Custom Validation","href":"/en/api-development/validation/custom-validation"},{"title":"Error Handling","href":"/en/api-development/validation/error-handling"}]},{"group":"File Upload","pages":[{"title":"File Upload Setup","href":"/en/api-development/file-upload/setup"},{"title":"BufferedFile Class","href":"/en/api-development/file-upload/uploaded-file-class"},{"title":"Saving Files","href":"/en/api-development/file-upload/saving-files"},{"title":"URL Generation","href":"/en/api-development/file-upload/url-generation"}]},{"group":"Authentication","pages":[{"title":"Authentication Setup","href":"/en/api-development/authentication/setup"},{"title":"Session Management","href":"/en/api-development/authentication/session-management"},{"title":"Protected Routes","href":"/en/api-development/authentication/protected-routes"}]}]},{"group":"Frontend Integration","icon":"browser","pages":[{"group":"Getting Started","pages":[{"title":"Frontend Setup","href":"/en/frontend-integration/getting-started/setup"}]},{"group":"Generated Services","pages":[{"title":"How Services Work","href":"/en/frontend-integration/generated-services/how-services-work"},{"title":"Using Services","href":"/en/frontend-integration/generated-services/using-services"},{"title":"TanStack Query Hook","href":"/en/frontend-integration/generated-services/tanstack-query"},{"title":"useSSEStream","href":"/en/frontend-integration/generated-services/useSSEStream"}]},{"group":"React Components","pages":[{"title":"Auto-generated Components Overview","href":"/en/frontend-integration/react-components/auto-generated-overview"},{"title":"View Scaffolding","href":"/en/frontend-integration/react-components/scaffolding-views"},{"title":"ID Async Select","href":"/en/frontend-integration/react-components/id-async-select"},{"title":"Search Input","href":"/en/frontend-integration/react-components/search-input"},{"title":"Search Components","href":"/en/frontend-integration/react-components/search-components"},{"title":"OrderBySelect","href":"/en/frontend-integration/react-components/order-by-select"},{"title":"Custom Components","href":"/en/frontend-integration/react-components/custom-components"}]},{"group":"Core Hooks","pages":[{"title":"useListParams","href":"/en/frontend-integration/core-hooks/use-list-params"},{"title":"useSelection","href":"/en/frontend-integration/core-hooks/use-selection"}]},{"group":"Type Safety","pages":[{"title":"Shared Types","href":"/en/frontend-integration/type-safety/shared-types"},{"title":"API Type Inference","href":"/en/frontend-integration/type-safety/api-type-inference"},{"title":"Compile-time Errors","href":"/en/frontend-integration/type-safety/compile-time-errors"}]},{"group":"SSR","pages":[{"title":"SSR Setup","href":"/en/frontend-integration/ssr/ssr-setup"},{"title":"Data Preloading","href":"/en/frontend-integration/ssr/preloading-data"},{"title":"Hydration Strategies","href":"/en/frontend-integration/ssr/hydration-strategies"},{"title":"Cache Control","href":"/en/frontend-integration/ssr/cache-control"}]}]},{"group":"Testing","icon":"flask","pages":[{"group":"Writing Tests","pages":[{"title":"Test Structure","href":"/en/testing/writing-tests/test-structure"},{"title":"Test Scaffolding","href":"/en/testing/writing-tests/scaffolding-tests"},{"title":"Test Helpers","href":"/en/testing/writing-tests/test-helpers"}]},{"group":"Fixture","pages":[{"title":"Creating Fixtures","href":"/en/testing/fixtures/creating-fixtures"},{"title":"Loading Fixtures","href":"/en/testing/fixtures/loading-fixtures"},{"title":"Syncing Fixtures","href":"/en/testing/fixtures/syncing-fixtures"},{"title":"Test Database","href":"/en/testing/fixtures/test-database"}]},{"group":"Naite","pages":[{"title":"What is Naite?","href":"/en/testing/naite/what-is-naite"},{"title":"Recording Logs","href":"/en/testing/naite/recording-logs"},{"title":"Querying Logs","href":"/en/testing/naite/querying-logs"},{"title":"Debugging Tests","href":"/en/testing/naite/debugging-tests"},{"title":"Naite Viewer","href":"/en/testing/naite/naite-viewer"}]},{"group":"Mocking","pages":[{"title":"API Mocking","href":"/en/testing/mocking/api-mocking"},{"title":"Database Mocking","href":"/en/testing/mocking/database-mocking"},{"title":"runWithMockContext","href":"/en/testing/mocking/run-with-mock-context"}]}]},{"group":"Advanced Features","icon":"sparkles","pages":[{"group":"Caching (BentoCache)","pages":[{"title":"Cache Configuration","href":"/en/advanced-features/caching/cache-configuration"},{"title":"@cache Decorator","href":"/en/advanced-features/caching/cache-decorator"},{"title":"Cache Strategies","href":"/en/advanced-features/caching/cache-strategies"},{"title":"Cache Invalidation","href":"/en/advanced-features/caching/cache-invalidation"}]},{"group":"Cache-Control","pages":[{"title":"What is Cache-Control?","href":"/en/advanced-features/cache-control/what-is-cache-control"},{"title":"Cache Presets","href":"/en/advanced-features/cache-control/cache-presets"},{"title":"Using in APIs","href":"/en/advanced-features/cache-control/using-in-apis"},{"title":"Using in SSR","href":"/en/advanced-features/cache-control/using-in-ssr"}]},{"group":"Response Compression","pages":[{"title":"Compression Configuration","href":"/en/advanced-features/compress/compress-configuration"},{"title":"Compression Presets","href":"/en/advanced-features/compress/compress-presets"},{"title":"Per-API Compression Control","href":"/en/advanced-features/compress/per-api-control"},{"title":"Performance Optimization","href":"/en/advanced-features/compress/performance-optimization"}]},{"group":"File Storage","pages":[{"title":"Storage Drivers","href":"/en/advanced-features/storage/storage-drivers"},{"title":"Storage Manager","href":"/en/advanced-features/storage/storage-manager"},{"title":"File Operations","href":"/en/advanced-features/storage/file-operations"},{"title":"URL Builder","href":"/en/advanced-features/storage/url-builder"}]},{"group":"Server-Sent Events","pages":[{"title":"SSE Setup","href":"/en/advanced-features/sse/sse-setup"},{"title":"Creating SSE Endpoints","href":"/en/advanced-features/sse/creating-sse-endpoints"},{"title":"Client Integration","href":"/en/advanced-features/sse/client-integration"}]},{"group":"AI Agents","pages":[{"title":"Agent Configuration","href":"/en/advanced-features/ai-agents/agent-configuration"},{"title":"Creating Agents","href":"/en/advanced-features/ai-agents/creating-agents"},{"title":"Using the AI SDK","href":"/en/advanced-features/ai-agents/using-ai-sdk"}]},{"group":"Vector Search","pages":[{"title":"pgvector Setup","href":"/en/advanced-features/vector-search/pgvector-setup"},{"title":"Embeddings","href":"/en/advanced-features/vector-search/embeddings"},{"title":"Chunking","href":"/en/advanced-features/vector-search/chunking"},{"title":"Vector Search","href":"/en/advanced-features/vector-search/vector-search"},{"title":"Hybrid Search","href":"/en/advanced-features/vector-search/hybrid-search"}]},{"group":"OpenSearch Search","pages":[{"title":"OpenSearch Search Overview","href":"/en/advanced-features/opensearch/overview"},{"title":"Setup","href":"/en/advanced-features/opensearch/setup"},{"title":"Search Definitions","href":"/en/advanced-features/opensearch/definitions"},{"title":"Transactional Indexing","href":"/en/advanced-features/opensearch/transactional-indexing"},{"title":"Indexing Worker","href":"/en/advanced-features/opensearch/worker"},{"title":"Searching","href":"/en/advanced-features/opensearch/searching"},{"title":"Index Administration","href":"/en/advanced-features/opensearch/index-administration"},{"title":"Recovery Runbooks","href":"/en/advanced-features/opensearch/recovery-runbooks"},{"title":"Operations","href":"/en/advanced-features/opensearch/operations"},{"title":"miomock Walkthrough","href":"/en/advanced-features/opensearch/miomock-walkthrough"}]},{"group":"Workflow","pages":[{"title":"@workflow Decorator","href":"/en/advanced-features/workflows/workflow-decorator"},{"title":"Step","href":"/en/advanced-features/workflows/steps"},{"title":"Worker Setup","href":"/en/advanced-features/workflows/worker-setup"},{"title":"Error Handling","href":"/en/advanced-features/workflows/error-handling"}]},{"group":"Internationalization (i18n)","pages":[{"title":"i18n Overview","href":"/en/advanced-features/i18n/overview"},{"title":"i18n Setup","href":"/en/advanced-features/i18n/setup"},{"title":"SD Function and Dictionary","href":"/en/advanced-features/i18n/dictionary"},{"title":"Auto-extracted Entity Labels","href":"/en/advanced-features/i18n/entity-labels"},{"title":"Helper Functions","href":"/en/advanced-features/i18n/helpers"},{"title":"Excel Import/Export","href":"/en/advanced-features/i18n/excel-import"},{"title":"Localized DB Columns","href":"/en/advanced-features/i18n/localized-columns"}]}]},{"group":"Tools \u0026 CLI","icon":"wrench","pages":[{"group":"Sonamu CLI","pages":[{"title":"CLI reference","href":"/en/tools-and-cli/sonamu-cli/reference"},{"title":"dev","href":"/en/tools-and-cli/sonamu-cli/dev"},{"title":"build","href":"/en/tools-and-cli/sonamu-cli/build"},{"title":"migrate","href":"/en/tools-and-cli/sonamu-cli/migrate"},{"title":"fixture","href":"/en/tools-and-cli/sonamu-cli/fixture"},{"title":"test","href":"/en/tools-and-cli/sonamu-cli/test"},{"title":"stub","href":"/en/tools-and-cli/sonamu-cli/stub"},{"title":"cone","href":"/en/tools-and-cli/sonamu-cli/cone"},{"title":"scaffold","href":"/en/tools-and-cli/sonamu-cli/scaffold"}]},{"group":"Sonamu UI","pages":[{"title":"Getting Started","href":"/en/tools-and-cli/sonamu-ui/getting-started"},{"title":"Entity Management","href":"/en/tools-and-cli/sonamu-ui/entity-management"},{"title":"Migration Tab","href":"/en/tools-and-cli/sonamu-ui/migration-tab"},{"title":"Scaffolding Tab","href":"/en/tools-and-cli/sonamu-ui/scaffolding-tab"},{"title":"Subset Management","href":"/en/tools-and-cli/sonamu-ui/subset-management"},{"title":"Tips and Tricks","href":"/en/tools-and-cli/sonamu-ui/tips-and-tricks"}]},{"group":"VSCode Extension","pages":[{"title":"Installation","href":"/en/tools-and-cli/vscode-extension/installation"},{"title":"Key Features","href":"/en/tools-and-cli/vscode-extension/features"},{"title":"Shortcuts \u0026 Commands","href":"/en/tools-and-cli/vscode-extension/shortcuts"}]},{"group":"Hot Module Replacement","pages":[{"title":"How HMR Works","href":"/en/tools-and-cli/hmr/how-hmr-works"},{"title":"Boundaries","href":"/en/tools-and-cli/hmr/boundaries"},{"title":"Troubleshooting","href":"/en/tools-and-cli/hmr/troubleshooting"}]}]},{"group":"Configuration","icon":"gear","pages":[{"group":"sonamu.config.ts","pages":[{"title":"Project Settings","href":"/en/configuration/sonamu-config/project-settings"},{"title":"Database","href":"/en/configuration/sonamu-config/database"},{"title":"Server","href":"/en/configuration/sonamu-config/server"},{"title":"Sync Targets","href":"/en/configuration/sonamu-config/sync-targets"},{"title":"Storage","href":"/en/configuration/sonamu-config/storage"},{"title":"Cache (BentoCache)","href":"/en/configuration/sonamu-config/cache"},{"title":"Cache-Control","href":"/en/configuration/sonamu-config/cache-control"},{"title":"Compression","href":"/en/configuration/sonamu-config/compress"},{"title":"Tasks","href":"/en/configuration/sonamu-config/tasks"},{"title":"Authentication","href":"/en/configuration/sonamu-config/auth"}]},{"group":"Logging","pages":[{"title":"LogTape Setup","href":"/en/configuration/logging/logtape-setup"},{"title":"Sinks \u0026 Filters","href":"/en/configuration/logging/sinks-and-filters"},{"title":"Category Logging","href":"/en/configuration/logging/category-logging"},{"title":"Fastify Logging","href":"/en/configuration/logging/fastify-logging"}]},{"group":"Environment Variables","pages":[{"title":".env Setup","href":"/en/configuration/environment-variables/env-setup"},{"title":"Database Credentials","href":"/en/configuration/environment-variables/database-credentials"},{"title":"API Key Management","href":"/en/configuration/environment-variables/api-keys"}]},{"group":"TypeScript Config","pages":[{"title":"tsconfig.json","href":"/en/configuration/typescript/tsconfig"},{"title":"Path Mapping","href":"/en/configuration/typescript/path-mappings"},{"title":"Type Checking","href":"/en/configuration/typescript/type-checking"}]}]},{"group":"API Reference","icon":"book","pages":[{"group":"Decorators","pages":[{"title":"@api","href":"/en/api-reference/decorators/api"},{"title":"@stream","href":"/en/api-reference/decorators/stream"},{"title":"@websocket","href":"/en/api-reference/decorators/websocket"},{"title":"@transactional","href":"/en/api-reference/decorators/transactional"},{"title":"@upload","href":"/en/api-reference/decorators/upload"},{"title":"@cache","href":"/en/api-reference/decorators/cache"},{"title":"@workflow","href":"/en/api-reference/decorators/workflow"}]},{"group":"BaseModel","pages":[{"title":"findById","href":"/en/api-reference/base-model/find-by-id"},{"title":"findMany","href":"/en/api-reference/base-model/find-many"},{"title":"save","href":"/en/api-reference/base-model/save"},{"title":"del","href":"/en/api-reference/base-model/del"},{"title":"getPuri","href":"/en/api-reference/base-model/get-puri"},{"title":"sonamuFilter","href":"/en/api-reference/base-model/sonamu-filter"}]},{"group":"Puri Methods","pages":[{"title":"select","href":"/en/api-reference/puri-methods/select"},{"title":"where","href":"/en/api-reference/puri-methods/where"},{"title":"join","href":"/en/api-reference/puri-methods/join"},{"title":"orderBy","href":"/en/api-reference/puri-methods/order-by"},{"title":"limit / offset","href":"/en/api-reference/puri-methods/limit"},{"title":"Advanced Methods","href":"/en/api-reference/puri-methods/advanced-methods"}]},{"group":"Context","pages":[{"title":"Context","href":"/en/api-reference/context/sonamu-context"},{"title":"AuthContext","href":"/en/api-reference/context/auth-context"},{"title":"Context Methods","href":"/en/api-reference/context/methods"}]},{"group":"Exceptions","pages":[{"title":"SoException","href":"/en/api-reference/exceptions/sonamu-error"},{"title":"BadRequestException","href":"/en/api-reference/exceptions/bad-request-error"},{"title":"UnauthorizedException","href":"/en/api-reference/exceptions/unauthorized-error"},{"title":"Custom Exceptions","href":"/en/api-reference/exceptions/custom-errors"}]}]},{"group":"Troubleshooting","icon":"life-ring","pages":[{"group":"Common Errors","pages":[{"title":"Port Already in Use","href":"/en/troubleshooting/common-errors/port-in-use"},{"title":"Migration Errors","href":"/en/troubleshooting/common-errors/migration-errors"},{"title":"Type Errors","href":"/en/troubleshooting/common-errors/type-errors"},{"title":"HMR Issues","href":"/en/troubleshooting/common-errors/hmr-issues"},{"title":"Database Connection","href":"/en/troubleshooting/common-errors/database-connection"},{"title":"pnpm Workspace Dependency Issues","href":"/en/troubleshooting/common-errors/pnpm-workspace"}]},{"group":"Debugging","pages":[{"title":"Using Naite","href":"/en/troubleshooting/debugging/using-naite"},{"title":"Console Logging","href":"/en/troubleshooting/debugging/console-logging"},{"title":"Source Maps","href":"/en/troubleshooting/debugging/source-maps"},{"title":"Vitest Debug","href":"/en/troubleshooting/debugging/vitest-debug"}]},{"group":"Performance","pages":[{"title":"Query Optimization","href":"/en/troubleshooting/performance/query-optimization"},{"title":"N+1 Problems","href":"/en/troubleshooting/performance/n-plus-one-problems"},{"title":"Caching Strategies","href":"/en/troubleshooting/performance/caching-strategies"}]}]},{"group":"FAQ","icon":"message-question","pages":[{"title":"General Questions","href":"/en/faq/general"},{"title":"Entity and Model","href":"/en/faq/entity-and-model"},{"title":"Database","href":"/en/faq/database"},{"title":"API Development","href":"/en/faq/api"},{"title":"Testing","href":"/en/faq/testing"},{"title":"Deployment","href":"/en/faq/deployment"}]}]}]},"basePath":"","title":"Quick Start - ๐ฒ Sonamu","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-CUYDhsh7.js","DynamicMarkdown-D8KwOkxZ.js","zoom-image-lightbox-lceUjs6n.js","lightbox-handle-r17bVUz3.js"]}