Giter Club home page Giter Club logo

usecases's Introduction

Blue Brain Project - Usecase Wizard

This repository contains all the information related to the use cases that are shown in the Brain Simulation Platform.

All the titles, images, descriptions, files, etc are described in usecases.json

This app is deployed in HBP Collab

To run locally

  • Install docker
  • Clone your fork using: git clone https://github.com/YOUR_GITHUB_ACCOUNT/usecases.git
  • Move to the repo cd usecases
  • Sync branches:
    • Add base repo: git remote add upstream https://github.com/antonelepfl/usecases.git
    • Get latest changes: git fetch --all
    • Reset branches:
      • Go to DEV git checkout dev
      • Replace with original changes git reset --hard upstream/dev
  • Make your changes on DEV branch
  • ....
  • Build container docker build -t usecases-local .
  • Run container docker run -it -p 8282:8282 -v $(pwd):/home usecases-local:latest
  • Open in the browser with http://localhost:8282/#/categories
  • Select the category of your use case
  • The use case will be shown as it is in the Brain Simulation Platform

To deploy in a dev environment:

  • The user make a pull request to the dev branch
  • A travis plan is triggered to look for any error in the files.
  • When the plan finishes, the owners of the repo can merge the new pull request to dev.
  • The user receives the notification that his/her pull request was merged.
  • A jenkins plan is triggered.
  • The new changes appear in Online Use Cases DEV

To deploy in production (non notebook):

  • The owner receives the confirmation from the tests and the user that everything works correctly.
  • The owner create a pull request from dev environment to master.
  • A jenkins plan is triggered.
  • Go to jenkins Build with Parameters and check release
  • The new changes appear in Brain Simulation Platform

To deploy in production (notebook):

  • Download the notebook that is pointed in the file field in usecases.json (Collab UUID)
  • Add this notebook into usecases/production_notebooks folder
  • Add a new field on the usecases.json next to file called file_prod that points to https://api.github.com/repos/antonelepfl/usecases/contents/production_notebooks/<category>/<notebook_name>.ipynb?ref=master (*)
  • Create a Pull Request to dev branch with this 2 changes
  • After aproved in dev create a new Pull Request merging dev into master
  • After dev is merged into master this jenkin plan is triggered
  • To release the new version of the site, tick release checkbox on this plan

How to:

(*) We are using the Github API and not the raw content because we need the SHA to compare using the common header snippet

usecases's People

Contributors

adamhospital avatar alex4200 avatar alicegem avatar antonelepfl avatar appukuttan-shailesh avatar davidcsterratt avatar dependabot[bot] avatar elisamarenzi avatar glaunay avatar hjorthmedh avatar jdcourcol avatar lbologna avatar liesbethvanherpe avatar mgeplf avatar njbruce avatar pgetta avatar stefangit avatar stefanoantonel avatar stemasoli 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.