chinchang / web-maker

A blazing fast & offline frontend playground
https://webmaker.app
MIT License
2.57k stars 316 forks source link

REQ: Dockerfile or Self Hosting Documentation #549

Open ethanpil opened 9 months ago

ethanpil commented 9 months ago

I would appreciate some instructions to self-host this. I want to be able to have my own personal versoin of https://webmaker.app/app/

Not run locally or as an extension. I want to run it on my homelab as a local subdomain - http://web-maker.local

Some similar previous issues/requests - #471 #444 #91 etc.

chinchang commented 9 months ago

It runs on local easily. But to be able to host on a server requires some additional steps. I'll see if I can get a chance to document those as well.

ethanpil commented 8 months ago

After playing with everything for a while, here is what I figured out using Alpine Linux.

Need to use Alpine 3.15 for correct node version. Need documentation to setup firebase, etc.

Would love to see something without firebase, perhaps using PouchDB or Triplit for a truly self hosted solution.

apk add --no-cache git nodejs npm 
npm install -g yarn gulp-cli
mkdir /srv && cd /srv
git clone https://github.com/chinchang/web-maker.git
cd web-maker
npm install
gulp release
opencoca commented 7 months ago

Nice, buildout. Pocketbase might be another great option.

chinchang commented 5 months ago

After playing with everything for a while, here is what I figured out using Alpine Linux.

Need to use Alpine 3.15 for correct node version. Need documentation to setup firebase, etc.

Would love to see something without firebase, perhaps using PouchDB or Triplit for a truly self hosted solution.

apk add --no-cache git nodejs npm 
npm install -g yarn gulp-cli
mkdir /srv && cd /srv
git clone https://github.com/chinchang/web-maker.git
cd web-maker
npm install
gulp release

Yep! And after this the generated dist folder can be served.

IOLOII commented 4 months ago

After playing with everything for a while, here is what I figured out using Alpine Linux. Need to use Alpine 3.15 for correct node version. Need documentation to setup firebase, etc. Would love to see something without firebase, perhaps using PouchDB or Triplit for a truly self hosted solution.

apk add --no-cache git nodejs npm 
npm install -g yarn gulp-cli
mkdir /srv && cd /srv
git clone https://github.com/chinchang/web-maker.git
cd web-maker
npm install
gulp release

Yep! And after this the generated dist folder can be served.

Say it in the first : I'm not a programmer with rich experience in large-scale projects. The questions raised may be relatively simple, so please don't mind.

471

😆 So , just run

gulp release

Will get dist/* files.

But why config this script in package.json

"build": "preact build --template src/index.ejs --prerender false --no-inline-css --sw false",

I just received your reply. Then try to build with node v16 by run script "npm run build" , but get error :" ENOENT: no such file or directory, open '/Users/username/Desktop/repos/web-maker/src/lib/monaco/monaco.bundle.js.map' "

image

Why not add a script config in package.json :

"build":"gulp release"
chinchang commented 4 months ago

@IOLOII you mentioned node v6. Are you really using node v6? That would be too old to run Web Maker on. If yes, try with node 16.

IOLOII commented 4 months ago

@IOLOII you mentioned node v6. Are you really using node v6? That would be too old to run Web Maker on. If yes, try with node 16.

I'm sorry .I wrote it wrong. The version I used is v16 whitch you told me #471

Among the content mentioned above, what I actually want to ask more is: Why not add a script config in package.json,More descriptions are also in the previously mentioned content.