1.0.0 • Published 8 months ago

holepack v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.