holepack-edge
v1.0.1-28537957.18ab3f0
Published
Build and Deploy Universal JavaScript Servers
Downloads
202
Readme
Hole
Build and Deploy Universal JavaScript Servers.
Quick Start
0️⃣ Create an empty directory hole-app
mkdir hole-app
cd hole-app
1️⃣ Create routes/index.ts
:
export default defineEventHandler(() => 'hole is amazing!')
2️⃣ Start development server:
npx holepack dev
🪄 Your API is ready at http://localhost:3000/
Check .hole/dev/index.mjs
if want to know what is happening
3️⃣ You can now build your production-ready server:
npx holepack build
4️⃣ Output is in the .output
directory and ready to be deployed on almost any VPS with no dependencies. You can locally try it too:
node .output/server/index.mjs
License
Made with 💛 Published under MIT.