Giter Club home page Giter Club logo

create-cozy-app's Introduction

CCA illustration

Create Cozy App

Start quickly your Cozy application

What's create-cozy-app?

create-cozy-app is a command line tool that create a skeleton of an application for Cozy, using Cozy libraries.

This tool can be run as an installed CLI or by using yarn create, see below for more information.

By default, create-cozy-app will use the cozy-scripts scripts bundle to build your app based on Preact (tested on React) and Redux frameworks.

Requirements

  • Node.js version 8 or higher;
  • Yarn. Yarn is a Node.js package manager, like npm;
  • a running Cozy development environment (optional if you just want to use standalone mode);

Running it without installation via Yarn

You can use create-cozy-app without installing it globally by using the yarn create cozy-app command to bootstrap your application:

yarn create cozy-app mycozyapp

You can find more information about yarn create in the yarnpkg documentation.

Install the CLI

Just use yarn to download and globally install the create-cozy-app CLI;

yarn global add create-cozy-app

CLI usage

If you installed the CLI as described before, use the create-cozy-app command to bootstrap your application:

create-cozy-app mycozyapp

Ready to go

The script will download some dependencies (may take a while) and ask you a few questions, then create an application skeleton inside mycozyapp

That's all! You can start hacking:

cd mycozyapp
yarn watch:standalone

After the webpack build, your app should be available at http://localhost:8888

Known limitations

For now, this project has only been tested on GNU/Linux and OS X.

Options

--scripts-source

You can pass a custom scripts package using the optional --scripts-source option, it can be one of:

  • a relative local path to a tarball (fileRel: prefix): fileRel:./a-folder/my-cozy-scripts.tar.gz
  • an absolute local path to a tarball (fileAbs: prefix): fileAbs:/root/my-cozy-scripts.tar.gz
  • an URL to a tarball (url: prefix): url:https://myurl.com/my-cozy-scripts.tar.gz
  • a specific npm version (version: prefix): version:0.1.5
  • a specific git commit/branch with name provided after the '#' (git: prefix): git://github.com/CPatchane/cozy-scripts.git#master
--vue

Using this options, create-cozy-app will use the cozy-scripts package but with the template-vue template folder in order to build a Cozy application using the VueJS 2+ framework.

--vanilla

Using this options, create-cozy-app will use the cozy-scripts-vanilla package (instead of the default one: cozy-scripts) and build a Cozy application in VanillaJS without any npm dependencies.

Community

What's Cozy?


Cozy is a platform that brings all your web services in the same private space. With it, your webapps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one's tracking you.

Get in touch

You can reach the Cozy Community by:

License

create-cozy-app is distributed under the MIT license.

CCA logo by @CPatchane.

create-cozy-app's People

Contributors

cpatchane avatar renovate-bot avatar renovate[bot] avatar ptbrowne avatar gregorylegarec avatar kosssi avatar y-lohse avatar clochix avatar

Watchers

James Cloos avatar Benjamin avatar  avatar

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.