README.md 1.2 KB

Nuxt Minimal Starter

Look at the Nuxt documentation to learn more.

axios 호출 방식

// GET 요청
const data = await $api.get('/api/endpoint', { param1: 'value1' })

// POST 요청 (JSON)
const result = await $api.post('/api/endpoint', { data: 'value' })

// POST 요청 (FormData)
const result = await $api.postForm('/board_proc', formData)

// PUT 요청
const result = await $api.put('/api/endpoint', { data: 'value' })

// DELETE 요청
const result = await $api.delete('/api/endpoint', { id: 123 })

Setup

Make sure to install dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm dev

# yarn
yarn dev

# bun
bun run dev

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm build

# yarn
yarn build

# bun
bun run build

Locally preview production build:

# npm
npm run preview

# pnpm
pnpm preview

# yarn
yarn preview

# bun
bun run preview

Check out the deployment documentation for more information.