63 lines
1.6 KiB
Markdown
63 lines
1.6 KiB
Markdown
# ExploreCraft: Website
|
|
|
|
This is the ExploreCraft Website. Created with Svelte, PicoCSS, and dedication by [Sangelo](https://gitpot.org/sangelo/) & [LogolicusZ](https://gitpot.org/LogolicusZ/).
|
|
|
|
<a href="https://explorecraft.net">
|
|
<picture>
|
|
<source srcset="docs/assets/screenshot-dark.png" media="(prefers-color-scheme: dark)" alt="ExploreCraft Website Screenshot">
|
|
<img src="docs/assets/screenshot-light.png" alt="ExploreCraft Website Screenshot">
|
|
</picture>
|
|
</a>
|
|
|
|
## License
|
|
|
|
This project is licensed under the MPL v2.0. More info [here](./LICENSE).
|
|
|
|
## Developing
|
|
|
|
To start developing, clone the repository.
|
|
|
|
```bash
|
|
# clone the website
|
|
git clone https://gitpot.org/ExploreCraft/website.git
|
|
```
|
|
|
|
Once you've cloned the repository you'll need to install the required dependencies, and then, start a development server:
|
|
|
|
```bash
|
|
# install dependencies (you can also use pyarn install or yarn)
|
|
yarn install
|
|
|
|
# start vite development server
|
|
yarn run dev
|
|
|
|
# or start the server and also open the website in a new browser tab
|
|
yarn run dev -- --open
|
|
|
|
VITE v4.3.9 ready in 358 ms
|
|
|
|
➜ Local: http://127.0.0.1:5173/
|
|
➜ Network: use --host to expose
|
|
➜ press h to show help
|
|
```
|
|
|
|
This server will automatically apply changes you do to the code, so just start working and Vite will do the rest. No need to refresh!
|
|
|
|
## Building
|
|
|
|
To build a production-ready version of this website:
|
|
|
|
```bash
|
|
# run build action
|
|
yarn run build
|
|
```
|
|
|
|
You can also preview the production build (You'll need to build the website first if you haven't done so already):
|
|
|
|
```bash
|
|
# build the website
|
|
yarn run build
|
|
|
|
# start a preview server
|
|
yarn run preview
|
|
```
|