Giter Club home page Giter Club logo

sahanar11-forks / bullet-train-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flagsmith/flagsmith-frontend

0.0 1.0 0.0 45.78 MB

Website and mobile app for Bullet Train. Ship features with confidence using feature flags and remote config. Host yourself or use our hosted version at https://bullet-train.io/

Home Page: https://bullet-train.io/

License: BSD 3-Clause "New" or "Revised" License

JavaScript 92.29% HTML 0.78% CSS 6.69% Dockerfile 0.23% Shell 0.01%

bullet-train-frontend's Introduction

Feature Flag, Remote Config and A/B Testing platform, Bullet Train

Donate

Bullet Train Frontend

The frontend application for https://bullet-train.io/. Bullet Train allows you to manage feature flags and remote config across multiple projects, environments and organisations.

This project connects to the Bullet Train API.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See running in production for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

Location Suggested Version
NodeJS >= 6.0.0
npm >= 4.0.0

Installing

npm i

Running

Development

Hot reloading for client / server

npm run dev

Production

You can deploy this application on Heroku and Dokku without making any changes, other than the API URL in project_prod.js

Bundles, minifies and cache busts the project to a build folder and runs node in production. This can be used as part of your deployment script.

npm run bundle
npm start

ENV variables

Variables that differ per environment are exported globally to window.Project in common/project.js, this file gets replaced by a project.js located in env by webpack based on what is set to the "ENV" environment variable (e.g. ENV=prod).

You can override each variable individually or add more by editing environment.js.

Current variables used between environment.js and common/project.js:

  • API_URL: The API to hit for requests
  • BULLET_TRAIN: The bullet train project we use to manage features
  • GA: Google analytics key
  • CRISP_CHAT: Chat widget key
  • MIXPANEL: Mixpanel analytics key
  • SENTRY: Sentry key
  • ASSET_URL: Used for replacing local static paths with a cdn, .e.g https://cdn.bullet-train.io

E2E testing

This project uses Nightwatch for automated end to end testing with chromedriver.

npm test

Built With

  • React
  • Webpack
  • Node

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Getting Help

If you encounter a bug or feature request we would like to hear about it. Before you submit an issue please search existing issues in order to prevent duplicates.

Get in touch

If you have any questions about our projects you can email [email protected].

Running locally against your own Bullet Train API instance

We use Bullet Train to manage features we rollout, if you are using your own bullet train environment (i.e. by editing project_x.js-> bulletTrain) then you will need to have a replica of our flags.

A list of the flags and remote config we're currently using in production can be found here https://gist.github.com/kyle-ssg/55f3b869c28bdd13c02c6688bc76c67f.

Useful links

Website

Product Roadmap

Documentation

Code Examples

Youtube Tutorials

bullet-train-frontend's People

Contributors

kyle-ssg avatar lukefanning avatar niall-quinn avatar dabeeeenster avatar andymoffatt avatar matthewelwell avatar twstuart avatar dependabot[bot] avatar amammay avatar javlund avatar sahanar11 avatar granjow avatar

Watchers

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