close
Skip to content

mehdnas/mywebsite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Website

A personal website built using a game engine (Bevy) to provide an interactive, game-like experience right in the browser. The game is compiled to WebAssembly (WASM) and served using a web server (miniserve or Apache2).

🛠 Build & Deploy

Build the Website

Run the build script to compile the Bevy game to WASM and generate the necessary JavaScript bindings using wasm-bindgen:

./build-website.sh

This outputs the game files into the web/ directory.

Serve Locally

To serve the website locally using miniserve:

./build-website.sh run

This will serve the contents of the web/ directory at http://localhost:8080.

Deploy to Server

To deploy the website to your server using Ansible (make sure your inventory file is configured):

./build-website.sh deploy

This will copy the site to your web server and configure Apache with HTTPS via Let's Encrypt.

📁 Project Structure

.
├── ansible                # Ansible playbook and inventory for deployment
│   ├── inventory
│   └── setup_server.yml
├── game                   # Bevy game source code
│   ├── Cargo.toml
│   └── src
├── web                    # Output directory for web files (index.html, game.js, etc.)
│   └── index.html
├── build-website.sh       # Build and deployment script
├── LICENSE
└── README.md

📦 Technologies Used


⚠️ Requirements:

  • Rust toolchain with wasm32-unknown-unknown target
  • wasm-bindgen-cli installed
  • miniserve installed for local preview

About

My personal website, designed with a game engine to give it a game-like, interactive feel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors