Code Monkey home page Code Monkey logo

genomic-sequence-visualizer's Introduction

Build Status Coverage Status

JavaScript Style Guide

ToC

genomic-sequence-visualizer

Genomic sequence visualizer written in react/redux

Installing / Getting started

To install all project dependencies simply run

npm i

Developing

Built With

This project includes quite a few opinionated settings which where made according to our own guidelines. Therefore this template includes:

  • React as view-library
  • Redux for state management
  • Redux-loop for sideeffects
  • Reselect for selector memoization
  • Styled-components for component level CSS styling
  • Axios for request handling
  • Webpack as module bundler, dev server and build tool
  • Babel for ES6 and Flow transpilation
  • Flow as type-checker
  • Standard as JS linter
  • Jest as testing framework
  • normalize.css as CSS-reset

Development commands

Dev-Server

To start the development server run:

npm start

This and start an instance of webpack-dev-server as well as an instance of a json-server which provides a fake api. From then on the whole project will rebuild, run your JS files through the Flow type-checker and lint your JS with standard whenever you save a file.

Type-Checker (Flow)

To separately type-check your JS-files, run:

npm run flow
Required module not found

To add third party library flow support use flow-typed.

If the library of your choice does not support flow, you can add an entry to flow-typed/libDefs.js. The declaration should look like this:

declare module 'myModule' {
  declare module.exports: any
}

If a local module is not resolved correctly you can add an option to the .flowconfig like so:

[options]
module.system.node.resolve_dirname=src

Linters

To separately lint your JS-files, run:

npm run lint

or to autmatically fix issues if possible, run:

npm run lint:fix

Testing

Tests should usually live next to their base files and should be named like: <myBaseFile>.test.js.

To run Jest an check if your tests pass invoke:

npm run test

To run jest and generate coverage, run:

npm run test:coverage

To view the coverage files inside your browser, open the index.html inside coverage/lcov-report/.

To continuously run Jest and have Jest watch for changes, run:

npm run test:watch

Building

To build the project, run:

npm run build

This will compile, minify and bundle everything and put all packaged files into the dist/ directory (if there is no such directory it will just be newly created, an existing directory will be removed first). To allow our clients browsers to cache vendor files and only update the cache when it is really necessary, all important filenames include hashes for reference inside the built manifest file.

genomic-sequence-visualizer's People

Contributors

itsbenweeks avatar

Watchers

 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.