Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 555 Bytes

README.md

File metadata and controls

49 lines (33 loc) · 555 Bytes

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