GithubHelp home page GithubHelp logo

neuralnoise / bolt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from firebaseextended/bolt

0.0 2.0 0.0 4.11 MB

Bolt Compiler (Firebase Security and Modeling)

License: Apache License 2.0

JavaScript 5.64% TypeScript 93.92% HTML 0.44%

bolt's Introduction

Bolt Icon Bolt Compiler

Build Status NPM Version NPM Downloads

Bolt is an experimental security and rules compiler for Firebase. It is currently in beta. The language definition is converging, but not yet finalized. We welcome experimentation, but ask that you hand-verify the resulting JSON output before using with production applications.

Otherwise, we'd love to have feedback from early adopters. You can email questions to [email protected] using "Bolt" in the subject line, or post bugs on our Issue Tracker.

Language Definition

Using the Bolt Compiler

You can easily install the bolt compiler using npm:

$ npm install --global firebase-bolt

Execute the Bolt compiler from the command line:

$ firebase-bolt rules.bolt

Will create a rules.json which you can then upload via the firebase command line:

$ firebase deploy

The firebase command line tool version 2 will also compile your Bolt file directly if you have firebase-bolt installed and you use the .bolt file extension in the rules property of your firebase.json configuration file.

Developing with this Repo

You should have node.js and npm installed to use this repository.

Setup command line environment and build and test.

$ source tools/use
$ configure-project
$ gulp

Useful commands

Check JavaScript source files for required formatting conventions:

$ gulp lint

Build Bolt parser from PEG grammar:

$ gulp build

Run command line tests:

$ gulp test

More extensive tests which include running against a sandboxed Firebase app:

$ run-tests

Run browser-based tests:

$ browser-tests

bolt's People

Contributors

mckoss avatar firebase-ops avatar tomlarkworthy avatar mikelehen avatar tristonianjones avatar jamestamplin avatar matjaz avatar adiman9 avatar ibroadfo avatar malikasinger1 avatar

Watchers

James Cloos avatar Starbuck 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.