Giter Site home page Giter Site logo

oddsdk / create-odd-app Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 265 KB

A CLI generator for spinning up either React or SvelteKit versions of ODD templates with pre-configured auth flows

TypeScript 85.98% JavaScript 14.02%
cli fission odd oddjs react svelte sveltekit

create-odd-app's Introduction

Create ODD App (COA)

Built by FISSION Built by FISSION Discord Discourse

CWA is a CLI generator that allows you to spin up either React or SvelteKit flavours of Fission's ODD App Template and ODD WalletAuth repos.

๐ŸŽฌ Demo

demo.mp4

๐Ÿ’ป Getting Started

You can use the following commands via your package manager of choice to invoke create-odd-app

npx @oddjs/create-odd-app

Options

You can invoke create-odd-app directly with an app name or you can wait to be prompted to set one:

npx @oddjs/create-odd-app my-odd-app

create-odd-app also comes with the following options:

  • --use-sveltekit - Explicitly tell the CLI to build the application using SvelteKit
  • --use-react - Explicitly tell the CLI to build the application using React
  • --use-walletauth - Explicitly tell the CLI to build the application using the ODD WalletAuth flow
  • --use-webcrypto - Explicitly tell the CLI to build the application using the ODD Device Linking flow
  • --use-npm - Explicitly tell the CLI to bootstrap the app using npm. This is the default option.
  • --use-pnpm - Explicitly tell the CLI to bootstrap the app using pnpm. To bootstrap using pnpm we recommend running pnpm create odd-app
  • --use-yarn - Explicitly tell the CLI to bootstrap the app using yarn. To bootstrap using pnpm we recommend running yarn create odd-app

๐Ÿค” What's The ODD SDK?

The ODD SDK empowers developers to build fully distributed web applications without needing a complex back-end. The SDK provides:

ODD applications work offline and store data encrypted for the user by leveraging the power of the web platform. You can read more about the ODD SDK in Fission's ODD Guide.

๐Ÿš€ Contributing

git clone [email protected]:oddsdk/create-odd-app.git
cd create-odd-app
nvm use
npm i
npm run dev

create-odd-app's People

Contributors

avivash avatar jessmartin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

create-odd-app's Issues

Add option to remove TypeScript from the SvelteKit codebases(WAT, WalletAuth)

CRA and Next both allow you to generate non-TS versions of their codebases. It would be cool we could do the same. tsc, which was a transpiler that enabled this has been deprecated, but it may be worth investigating other solutions Scratch that, apparently tsc lives within the typescript package now. So i'm going to see if it's useable for this ๐Ÿ‘€

This has been implemented for the React codebases already, but we getting it working for SvelteKit is a bit trickier because I'll need to write a transpiler from scratch, so I've separated this into a separate issue than #2 ๐Ÿ‘๐Ÿผ

Add option to remove TypeScript from the React codebases(WAT, WalletAuth)

CRA and Next both allow you to generate non-TS versions of their codebases. It would be cool we could do the same. tsc, which was a transpiler that enabled this has been deprecated, but it may be worth investigating other solutions Scratch that, apparently tsc lives within the typescript package now. So i'm going to see if it's useable for this ๐Ÿ‘€

Add option to remove gallery code from the selected codebase

Since all four webnative apps (https://github.com/webnative-examples/webnative-app-template, https://github.com/webnative-examples/webnative-app-template-react, https://github.com/webnative-examples/walletauth, https://github.com/webnative-examples/walletauth-react) are now using a DDD approach for the gallery code, we should add a prompt to this CLI to allow users to decide whether or not they want the gallery code included in the app they generate.

I think we should include the gallery code by default, simply because there isn't much else going on in the apps once the user has signed in, but it is likely many users will not want the gallery code included if they're using the generated templates to build other products.

Notes:
I think it's best to hold off on implementing this until after the 0.2 milestone has been completed, because there may be some UI updates and code shuffling done to the four templates as part of that

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.