This is the source code for the oviedolab.org website. The webpage is built using SvelteKit and Tailwind CSS, with Bun as the JavaScript runtime and package manager. The webpage components are built on top of the shadcn-svelte UI library.
To set up this project on a new machine, first install the required runtimes and dependencies:
- Install Node.js version 24 or higher
- Install Bun
- Install Rust and wasm-pack (for WebAssembly components)
Then, clone the repository and install the dependencies:
- Clone the repository:
git clone https://github.com/Oviedo-Lab/oviedolab-website-source.git- Install the dependencies:
cd oviedolab-website-source
bun installTo run the development server, use the following command:
bun run dev
# To expose the server to other devices on your network, use the following command:
bun run dev --hostThis will start the development server and open the website in your default browser. The server will automatically hot reload the page when you make changes to the source code.
Note: The first time you run the development server or the build command, it will take some time for the program to generate optimized versions of website's assets (images, videos, etc.). These optimizations are cached in the node_modules\.cache\imagetools\ and will be reused on subsequent runs. Because of this, when running the development server for the first time, navigating the website will be less responsive.
To compile the website for production, use the following command:
bun run buildThis will generate a production build of the website in the build directory. The contents of this directory can be deployed to a web server or hosted on GitHub Pages.
To preview the production build locally, you can use the following command:
bun run previewThe current build of the website is available at Oviedo-Lab/oviedo-lab.github.io.