GithubHelp home page GithubHelp logo

fliplet / fliplet-cli-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fliplet/fliplet-cli

0.0 0.0 0.0 43.69 MB

Command Line Interface for creating and developing widgets on the Fliplet platform.

Home Page: https://www.fliplet.com

License: GNU General Public License v3.0

JavaScript 71.55% CSS 9.89% HTML 17.75% Vue 0.60% SCSS 0.21%

fliplet-cli-2's Introduction

Fliplet CLI

Command line utility for creating and running components, themes and menus to be used on the Fliplet platform.

Documentation

Extensive documentation is available at developers.fliplet.com.


Install

With node.js and npm:

npm install fliplet-cli -g

You can now use the command fliplet from the command line. Just type fliplet to see the available options and their example usage.


Please refer to our documentation for all details about creating components, themes and menus on Fliplet via the fliplet-cli.

Publish to npm

Run npm publish from your machine, given you are logged in on npm as a user with publishing permissions. You will be asked for a two-factor verification code for your account.


Documentation

You can view Fliplet documentation at http://developers.fliplet.com or also get a copy of such website running locally on your machine. To do so, navigate to the docs directory, install the ruby dependencies described below and run the Jekyll server:

cd docs

Install depencencies:

gem install bundler
bundle install

You may need to install sudo apt-get install ruby-dev in order for the bundle install to succeed on some systems. This is due to the nokogiri gem requiring ruby-dev to be compiled.

Run Jekyll locally:

bundle exec jekyll serve

Then the website should be up and running at http://127.0.0.1:4000/

Update the Algolia search index

The index updates automatically via CircleCI. You can however rebuild it manually:

  1. Copy the contents of docs/docsearch/.env.example into docs/docsearch/.env
  2. Grab the Admin API key from Algolia.
  3. Set the API_KEY in docs/docsearch/.env
  4. Install jq on your machine
  5. Clear the index on Algolia (Manage index > Clear)
  6. Clear the index by running npm install && node index.js from the docs/docsearch
  7. Run the following command from the docs/docsearch folder:
docker run -it --env-file=.env -e "CONFIG=$(cat config.json | jq -r tostring)" algolia/docsearch-scraper

Update the Fliplet Approved libraries documentation page

Run the following command then commit the changed ./docs/Fliplet-approved-libraries.md file:

npm run update-assets-docs

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.