Deploy WApp on local box?

Hello people! I have a quick question and also some more serious questions later, in separate threads. I have some low power boxes up and running (a NUC and some RK3588 linux boxes). The Linux boxes have Apache2 and Node installed.

  • What would it take to to deploy my NodeJS+SQLite Wappler project on these boxed? Is it a matter of copying the project folder to the Apache2 /www folder on the Linux box? Will mixing Apache2 with Node work at all?

  • If Linux is a bridge too far I also have a Intel NUC with windows and WAMP

The below part contains no questions, but a progress report :slight_smile:

  1. Figured out CRUD with modals, beautiful results
  2. Implemented CRUD for 6 linked tables
  3. Figured out I can use joins to combine more tables in one Listview, pardon table
  4. Figured out how to populate dropdown boxes, pardon selects, with tables, with the id/name/selected stuff. Works nicely!
  5. Figured out how to put contract text in a tiny rich editor component (one of the two couldn't get working, the other works) all nicely integrated in CRUD
  6. Figured out the mailer and got it working

To do:

  • contracts CRUD page
  • Signature component
  • Figure out how to mail the signed contract as PDF attachment. Ideally the signed contract text in one attachment.

Data model:

Contract
--> User
--> Laptop
--> TextCode

Laptop
--> Screensize
--> Brand

Makes for 6 tables.

Thanks for your pointers so far they have been very helpful!

Bas

Hi Ben,

Apache is not usually used with NodeJS. You'd be looking at a reverse proxy software like nginx (most famous). If you don't like nginx you can also check Caddy server. And you might also want PM2 to run the NodeJS server. Nginx then proxies incoming HTTP requests to the NodeJS server.

I don't have time to explain in more detail, but hopefully that nudges you in the right direction :slight_smile:

Thanks I will look into that. And if it's just for dev/showcase/hobby far FAR from production, would Express be maybe even easier? I am slowly starting to understand how NodeJS, nodeApp, and webserver play together on the server.

Bas

Yes, you could run just the NodeJS server alone without anything else :slight_smile:

P.S.: Sorry, I called you Ben instead of Bas