-
Notifications
You must be signed in to change notification settings - Fork 437
chore: migrate Ninja projects here #1110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
0bbe473
Motoko hello world - remove ninja-specific parts
viviveevee 9a5cffe
rust Hello World
viviveevee 6b4c3cd
update BUILD.md
viviveevee b79240f
add candid-extractor to CI
viviveevee ef0115f
fix rust/parallel_calls
viviveevee cc8cd66
...again
viviveevee a6c0549
Update motoko/hello_world/backend/app.mo
viviveevee b60c947
add open-in-ninja button to readmes
viviveevee 34f18a2
add rust/flying_ninja
viviveevee d16f8e9
add motoko/flying_ninja
viviveevee d8006e9
add motoko/llm_chatbot
viviveevee 2ad230c
add mops to setup
viviveevee 69e878b
add rust/llm_chatbot
viviveevee 8e3f2c8
add motoko/daily_planner
viviveevee c8b8a4d
add rust/daily_planner
viviveevee ddd6681
candid formatting
viviveevee c2d0b37
add motoko/backend_only
viviveevee 078ac16
add rust/backend_only
viviveevee 513c076
fix backend_only
viviveevee 9183c95
add rust/evm_block_explorer
viviveevee 81dee2d
add motoko/evm_block_explorre
viviveevee 850d304
forgot Makefile
viviveevee b637550
add motoko/filevault
viviveevee 4b7a223
add motoko/tokenmania
viviveevee 578b525
add rust/tokenmania
viviveevee 77141ea
add hosting/react
viviveevee ee0b8bb
hosting/my_crypto_blog
viviveevee 6fc8355
add rust/motoko who_am_i
viviveevee 8d5054a
update codeowners
viviveevee 70a094d
move to one .yml file for multiple examples
viviveevee 9c51a2b
target correct branch
viviveevee 186e585
fix matrix definition
viviveevee 33113d5
provision linux container
viviveevee 716de6b
skip bare ubuntu
viviveevee 97fd3de
revert provision script changes
viviveevee 9d95b29
skip npm i
viviveevee 698e418
Merge branch 'master' into severin/consolidate-ninja-projects
viviveevee e560645
revert rust/parallel_calls to be able to merge
viviveevee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,25 +1,27 @@ | ||
| # Hello, world! | ||
|
|
||
|  | ||
|  | ||
|
|
||
| This simple example demonstrates how applications on ICP are structured using a backend smart contract and a frontend smart contract, and provides an introduction to the programming language Motoko. | ||
|
|
||
| This variation of "Hello, world!" is written in [Motoko](https://internetcomputer.org/docs/current/motoko/main/getting-started/motoko-introduction), a programming language designed specifically for developing smart contracts (referred to as **canisters**) on ICP. | ||
| This variation of "Hello, world!" is written in [Motoko](https://internetcomputer.org/docs/motoko/main/getting-started/motoko-introduction), a programming language designed specifically for developing canisters (referred to as **canisters**) on ICP. | ||
|
|
||
| ### Project structure | ||
| ## Project structure | ||
|
|
||
| The `/backend` folder contains the Motoko canister, `app.mo`. The `/frontend` folder contains web assets for the application's user interface. The user interface is written with plain JavaScript, but any frontend framework can be used. | ||
|
|
||
| Edit the `mops.toml` file to add [Motoko dependencies](https://mops.one/) to the project. | ||
|
|
||
| ## Continue building locally | ||
| ## Deploying from ICP Ninja | ||
|
|
||
| To migrate your ICP Ninja project off of the web browser and develop it locally, follow these steps. | ||
| When viewing this project in ICP Ninja, you can deploy it directly to the mainnet for free by clicking "Deploy" in the upper right corner. | ||
|
|
||
| ### 1. Download your project from ICP Ninja using the 'Download files' button. | ||
| To **download** or **reset** the project files, click the menu option next to the deploy button. | ||
|
|
||
|  | ||
| ## Build and deploy from the command-line | ||
|
|
||
| ### 2. Open the `BUILD.md` file for further instructions. | ||
| To migrate your ICP Ninja project off of the web browser and develop it locally, follow these steps. These steps are necessary if you want to deploy this project for long-term, production use on the mainnet. | ||
|
|
||
| ### 1. Download your project from ICP Ninja using the 'Download files' button on the upper left corner under the pink ninja star icon. | ||
|
|
||
| The `BUILD.md` file included in your download will provide information about using `dfx`. | ||
| ### 2. Open the `BUILD.md` file for further instructions. |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "ICP Dev Environment", | ||
| "image": "ghcr.io/dfinity/icp-dev-env-slim:17", | ||
| "forwardPorts": [4943, 5173], | ||
| "portsAttributes": { | ||
| "4943": { | ||
| "label": "dfx", | ||
| "onAutoForward": "ignore" | ||
| }, | ||
| "5173": { | ||
| "label": "vite", | ||
| "onAutoForward": "openBrowser" | ||
| } | ||
| }, | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": ["dfinity-foundation.vscode-motoko"] | ||
| } | ||
| } | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.