Skip to content
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

feat: create starter kit and ucan example #1593

Merged
merged 16 commits into from
Mar 21, 2022
Merged

Conversation

hugomrdias
Copy link
Contributor

@hugomrdias hugomrdias commented Mar 9, 2022

This PR adds:

Web IDE:

The create starter kit will enable quick local setup of the examples

npx create-nft-storage https://github.com/nftstorage/nft.storage/tree/feat/create-example-ucan/examples/ucan-node

yarn create nft-storage https://github.com/nftstorage/nft.storage/tree/feat/create-example-ucan/examples/ucan-node

# Our examples can even be cloned with this short syntax
yarn create nft-storage ucan-node

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 9, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: eded667
Status:⚡️  Build in progress...

View logs

@hugomrdias hugomrdias force-pushed the feat/create-example-ucan branch from 9595282 to 4eab77b Compare March 10, 2022 16:14
@yusefnapora yusefnapora mentioned this pull request Mar 15, 2022
1 task
@hugomrdias hugomrdias marked this pull request as ready for review March 16, 2022 10:55
Copy link
Contributor

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

examples/ucan-node/index.js Outdated Show resolved Hide resolved
import kleur from 'kleur'
import { fileURLToPath } from 'url'

const __dirname = path.dirname(fileURLToPath(import.meta.url))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this convention...😆

packages/create-nft-storage/src/index.js Outdated Show resolved Hide resolved
packages/create-nft-storage/src/index.js Outdated Show resolved Hide resolved
packages/create-nft-storage/src/index.js Outdated Show resolved Hide resolved
packages/create-nft-storage/src/index.js Outdated Show resolved Hide resolved
packages/create-nft-storage/src/index.js Outdated Show resolved Hide resolved
Copy link
Contributor

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is super cool! ❤️

packages/create-nft-storage/templates/default/README.md Outdated Show resolved Hide resolved
@hugomrdias hugomrdias force-pushed the feat/create-example-ucan branch from faca986 to eded667 Compare March 21, 2022 12:20
@hugomrdias hugomrdias merged commit 0408aa1 into main Mar 21, 2022
@hugomrdias hugomrdias deleted the feat/create-example-ucan branch March 21, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants