Skip to content
/ x0-skeleton Public template

x0 JS Framework Application Skeleton Repository

License

Notifications You must be signed in to change notification settings

WEBcodeX1/x0-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x0-skeleton

x0 JS Framework Application Skeleton Repository.

Contains skeleton data to run your x0-application in minutes (Docker / Google Kubernetes Engine).

1. Dependencies

Ubuntu 22.04, 24.04

# install debian package builder / gnu gpg 
apt-get -y install debuild gnupg docker.io

Devuan

# install debian package builder / gnu gpg 
apt-get install devscripts pbuilder gnupg docker.io

2. Docker Images

Note

Currently we do not provide a docker registry, images must be loaded manually after downloading.

https://docker.webcodex.de/x0/docker.x0-app.tar
https://docker.webcodex.de/x0/docker.x0-db.tar
https://docker.webcodex.de/x0/docker.x0-db-install.tar (optional kubernetes / minikube)

# load docker images
docker load < docker.x0-app.tar
docker load < docker.x0-db.tar

3. Build Base Debian Packages

# build debian packages
cd ./debian && debuild

4. Build Docker Container

# build docker container
cd ./docker && build-app.sh && build-db.sh

5. IP Setup / DNS

The following IP setup is used (addresses / hostnames).

CONTAINER IP ADDRESS DNS / HOSTNAME
your-app 172.20.0.10 x0-skeleton-test.x0.localnet
your-db 172.20.0.20 mypostgres

Note

Add 172.20.0.10 / x0-skeleton-test.x0.localnet to hosts file or dns server.

6. Start Base Application

Run the following to test if everything is working correctly.

# build docker container
cd ./docker && x0-start-containers.sh

Open http://x0-skeleton-test.x0.localnet/python/Index.py, a Hello World. text should be displayed.

7. Model Your Application

8. Add Database

9. Rebuild / Deploy

About

x0 JS Framework Application Skeleton Repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published