Skip to content

nermalcat69/zerops-qwik-nodejs

 
 

Repository files navigation

Zerops x Qwik - Node.js

Qwik is a web framework for building instead loading web applications at any size or complexity. Zerops makes deploying and running Qwik apps, both server side rendered and static, a breeze. This recipe showcases the Node.js version, see zeropsio/recipe-qwik-static for the Static version.

qwik


Deploy on Zerops

You can either click the deploy button to deploy directly on Zerops, or manually copy the import yaml to the import dialog in the Zerops app.


Deploy on Zerops


Recipe features

  • Latest version of Qwik with SSR running on a Zerops Static service.

Production vs. development

This recipe is ready for production as is, and will scale horizontally by adding more containers in case of high traffic surges. If you want to achieve the highest baseline reliability and resiliace, start with at least two containers (add minContainers: 2 in recipe YAML in the app service section, or change the minimum containers in "Automatic Scaling configuration" section of service detail).


Changes made over the default installation

If you want to modify your existing Qwik app to efficiently run on Zerops, follow these steps:

  1. Install the necessary adapter with: sh npm run qwik add express Running this command will make the following changes
  • A build.server & serve script will be automatically added to your package.json file.
  • A adapters/express/vite.config.ts and src/entry.express.tsx will be created.
  • It will install the required dependencies for SSR.

Now, just add the zerops.yml file to the root of your project, and make sure to check package.json for the scripts.


Need help setting your project up? Join Zerops Discord community.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 69.3%
  • CSS 29.9%
  • JavaScript 0.8%