-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into severin/dfx-0.16.1
- Loading branch information
Showing
58 changed files
with
884 additions
and
1,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
# Godot HTML5 Sample | ||
# Godot HTML5 sample | ||
|
||
## Overview | ||
The example shows how to deploy a Godot HTML5 build on the IC in an asset canister. The Godot HTML5 build is deployed as frontend, no backend is needed in this sample. | ||
|
||
|
||
## Installation | ||
This example project can be cloned, installed and deployed locally, for learning and testing purposes. The instructions are based on running the example on either macOS or Linux, but when using WSL2 on Windows, the instructions will be the same. | ||
|
||
### Prerequisites | ||
The example project requires the following installed: | ||
## Prerequisites | ||
|
||
This example requires an installation of: | ||
|
||
- [x] Install the [IC SDK](https://internetcomputer.org/docs/current/developer-docs/setup/install/). | ||
|
||
- git | ||
- dfx | ||
- [x] Download and install [git](https://git-scm.com/downloads). | ||
|
||
git can be installed from various package managers. DFX can be installed following the instructions [here](https://internetcomputer.org/docs/current/developer-docs/build/install-upgrade-remove). | ||
## Install | ||
|
||
### Download the code | ||
Clone the example dapp project: | ||
|
||
```bash | ||
$ git clone https://github.com/dfinity/examples | ||
$ cd examples/hosting/godot-html5-template | ||
git clone https://github.com/dfinity/examples | ||
cd examples/hosting/godot-html5-template | ||
``` | ||
|
||
## Deployment | ||
The local network is started by running this command: | ||
The local replica is started by running this command: | ||
|
||
```bash | ||
$ dfx start --background | ||
dfx start --background | ||
``` | ||
|
||
When the local network is up and running, run this command to deploy the canisters: | ||
When the local replica is up and running, run this command to deploy the canisters: | ||
|
||
```bash | ||
$ dfx deploy | ||
dfx deploy | ||
``` | ||
|
||
If you get error code 500 after deploying to the IC mainnet, try to use `raw` keyword in the URL like this: `https://\<canister-id\>.raw.ic0.app`. | ||
|
||
## License | ||
This project is licensed under the Apache 2.0 license, see LICENSE.md for details. See CONTRIBUTE.md for details about how to contribute to this project. | ||
This project is licensed under the Apache 2.0 license, see `LICENSE.md` for details. See `CONTRIBUTE.md` for details about how to contribute to this project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,39 @@ | ||
# Unity WebGL Sample | ||
# Unity WebGL sample | ||
|
||
The example shows how to deploy a simple Unity WebGL build on the IC in an asset canister. It just shows a Unity WebGL build with the URP template installed. | ||
|
||
The Unity WebGL build is deployed as frontend, no backend is needed in this sample. | ||
|
||
## Prerequisites | ||
|
||
## Installation | ||
This example project can be cloned, installed and deployed locally, for learning and testing purposes. The instructions are based on running the example on either macOS or Linux, but when using WSL2 on Windows, the instructions will be the same. | ||
This example requires an installation of: | ||
|
||
### Prerequisites | ||
The example project requires the following installed: | ||
- [x] Install the [IC SDK](https://internetcomputer.org/docs/current/developer-docs/setup/install/). | ||
|
||
- git | ||
- dfx | ||
- [x] Download and install [git](https://git-scm.com/downloads). | ||
|
||
git can be installed from various package managers. DFX can be installed following the instructions [here](https://internetcomputer.org/docs/current/developer-docs/setup/deploy-locally). | ||
|
||
### Install | ||
## Install | ||
Install the example dapp project: | ||
|
||
```bash | ||
$ git clone https://github.com/dfinity/examples | ||
$ cd examples/hosting/unity-webgl-template | ||
git clone https://github.com/dfinity/examples | ||
cd examples/hosting/unity-webgl-template | ||
``` | ||
|
||
## Deployment | ||
The local network is started by running this command: | ||
The local replica is started by running this command: | ||
|
||
```bash | ||
$ dfx start --background | ||
dfx start --background | ||
``` | ||
|
||
When the local network is up and running, run this command to deploy the canisters: | ||
When the local replica is up and running, run this command to deploy the canisters: | ||
|
||
```bash | ||
$ dfx deploy | ||
dfx deploy | ||
``` | ||
|
||
If you get error code 500 after deploying to the IC mainnet, try to use `raw` keyword in the URL like this: `https://\<canister-id\>.raw.ic0.app`. | ||
|
||
## License | ||
This project is licensed under the Apache 2.0 license, see LICENSE.md for details. See CONTRIBUTE.md for details about how to contribute to this project. | ||
This project is licensed under the Apache 2.0 license, see `LICENSE.md` for details. See `CONTRIBUTE.md` for details about how to contribute to this project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.