-
Notifications
You must be signed in to change notification settings - Fork 11
Add Cloud IDE instructions and update MacOS instructions #50
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 all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| --- | ||
| layout: sdk/markdown | ||
| title: Use the Pebble SDK in the Cloud | ||
| permalink: /sdk/cloud | ||
| menu_section: sdk | ||
| menu_subsection: cloud | ||
| generate_toc: true | ||
| scripts: | ||
| - sdk/index | ||
| --- | ||
|
|
||
| ## Get started | ||
|
|
||
| You can develop Pebble apps using a browser-based version of VS Code with the Pebble SDK pre-installed. | ||
|
|
||
| Press to launch a cloud development environment: | ||
|
|
||
| [](https://codespaces.new/coredevices/codespaces-pebble?quickstart=1) | ||
|
|
||
| To resume your Codespace later, visit [cloud.repebble.com](https://cloud.repebble.com). | ||
|
|
||
| ## Usage | ||
|
|
||
| Your Codespace will launch into an example project with the C file already open. Press the button at the top right of the C file called "Run on Emulator." It will take a minute for this button to appear. | ||
|
|
||
| Once you're ready to create your own Pebble app, press the smartwatch icon on the left sidebar of VS Code and select **New Project**. | ||
|
|
||
| #### Save to GitHub | ||
|
|
||
| You should connect your Codespace to a GitHub repository to ensure permanent storage of your project code. | ||
|
|
||
| To do this, press the Source Control icon in the left sidebar of VS Code, then press "Publish Branch." Approve the pop-up asking to sign in with GitHub, select your GitHub account, then select "Publish to GitHub private repository." When you make changes, you can commit and push to that GitHub repo. All projects in your codespace will be saved in one repo. | ||
|
|
||
| #### Import an existing project | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: should be level 3 heading, not level 4 |
||
|
|
||
| In your terminal, paste `code /workspaces/codespaces-pebble`. VS Code will reload and open to that folder. | ||
|
|
||
| If there's a "build" folder in the project you want to import, delete it to speed up the upload. | ||
|
|
||
| Drag and drop your project into the file list pane on the left. Wait for the upload to complete. Then, press the Pebble icon in the left sidebar, select "Open Project", and select the project you just uploaded. You can now continue developing it! | ||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should be level 3 heading, not level 4