Skip to content

moritetu/nuxt3-express-template

Repository files navigation

nuxt3-express-template

The template for nuxt3 with express and primevue etc.

Setup

yarn
cp .env.local .env

# DB migration
yarn dev:db:migrate
yarn dev:db:seed:all

Usage

Run in development mode

yarn dev

http://localhost:3000/

Request Server API

$ curl http://localhost:3000/server/api/hello/say
{"message":"Hello World"}

Add Server Routes

  • src/server/routes/index.ts

Run in producion mode

yarn build
yarn start

Test

yarn test:server
yarn test:client