Let's create a new Nitro app in few steps.
Play OnlineOpen on StackblitzOpen on CodeSandox
Make sure you have installed the recommended setup:
Create a new project using starter template:
npx giget@latest nitro nitro-app
Install the dependencies:
Start the development server:
npm run dev
🪄 Your API is ready at
.nitro/dev/index.mjsif want to know what is happening
Build your production-ready server:
npm run build
Output is in the
.output directory and ready to be deployed on almost any provider with no dependencies.
You can try it locally with:
npm run preview