Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xavier-new

XR-SwissInvest marketing site, ready to publish on Infomaniak (Node.js hosting) or any host that runs Node.js 24+. The site itself is static — the included server.js is just a tiny zero-dependency static file server, so you can also host the contents of public/ directly on shared hosting if you prefer.


Folder layout

xavier-new/
├── public/              ← the actual website (static files)
│   ├── index.html
│   ├── support.js
│   └── assets/
│       ├── logo-light.png
│       ├── logo-dark.png
│       └── xavier.webp
├── server.js            ← tiny Node.js static server
├── package.json         ← engines: node >= 24
├── .node-version        ← "24"
├── .nvmrc               ← "24"
├── .gitignore
└── README.md

No dependencies — npm install is optional. The server uses only Node's built-in modules.


Local test (Node.js 24 or 25)

node --version          # should print v24.x.x or v25.x.x
npm start               # → http://localhost:3000

Or with live reload while editing:

npm run dev

Deploy on Infomaniak — Node.js hosting

Infomaniak Cloud Server / Public Cloud / Web hosting with Node.js support:

  1. Upload the project (everything in this folder) via FTP / SSH / Git to your site's root directory.
  2. In the Infomaniak Manager → Hosting → Sites → Node.js, choose your site and set:
    • Node.js version: 24 (or 25 if available)
    • Application root: the folder where you uploaded these files
    • Application entry point / startup file: server.js
    • Start command: npm start
  3. Infomaniak sets process.env.PORT automatically — server.js reads it.
  4. Save / restart the application from the manager.

The site will then be served at your configured domain.

Tip: if Infomaniak's Node.js version selector tops out below 24, pick the highest available LTS (22) — server.js only uses APIs available since Node 18, so it will still run. But Node 24 is recommended.

Deploy on Infomaniak — Shared / Web hosting (no Node.js)

If you're on classic shared hosting (Apache, no Node.js), you don't need server.js at all:

  1. Upload the contents of public/ (not the folder itself) to your site root (usually web/ or public_html/).
  2. Done — index.html is served directly.

Deploy via GitHub

  1. Create a new repo on GitHub.
  2. From this folder:
    git init
    git add .
    git commit -m "Initial commit"
    git branch -M main
    git remote add origin git@github.com:<you>/xavier-new.git
    git push -u origin main
  3. On Infomaniak, link your site to the GitHub repo (Manager → Hosting → Git) and set the same Node.js settings as above.

Notes

  • The site is fully self-contained client-side; there are no API endpoints or databases to configure.
  • Fonts are loaded from Google Fonts and the map tiles from OpenStreetMap via Leaflet (loaded over HTTPS). No build step is required.

About

Swiss invest website

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages