Vue 3 + Vite + Tailwind frontend, Fastify API server, execa shell bridge. All components built, server validated, 41 unit tests passing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
565 B
JavaScript
23 lines
565 B
JavaScript
import Fastify from 'fastify'
|
|
import multipart from '@fastify/multipart'
|
|
import cors from '@fastify/cors'
|
|
import { convertRoute } from './routes/convert.js'
|
|
|
|
const fastify = Fastify({ logger: { level: 'warn' } })
|
|
|
|
await fastify.register(cors, { origin: true })
|
|
|
|
await fastify.register(multipart, {
|
|
limits: { fileSize: 20 * 1024 * 1024 },
|
|
})
|
|
|
|
await fastify.register(convertRoute)
|
|
|
|
try {
|
|
await fastify.listen({ port: 3001, host: '127.0.0.1' })
|
|
console.log('ASCIInator API → http://127.0.0.1:3001')
|
|
} catch (err) {
|
|
fastify.log.error(err)
|
|
process.exit(1)
|
|
}
|