Git Product home page Git Product logo

m-diary's Introduction

React Redux app to record medical events

This repo is to slowly build a redux application with sound architectural designs. TDD is hard and TDD with react/redux is not that easy either. This is an attempt to build this from scratch and document the journey on medium as much as possible

##Testing react components using enzyme Create a mocha test harness which uses enzyme to test react components. Testing redux actions is fairly straightforward, but it gets tricky when it is using async actions. Utilized the excellent 'nock' library to intercept http requests. Sinon spy to stub out core functions. Still do not have a good way to test firebase integrations. The best way to test firebase is to create a separate database with test data.

###Getting Started with this repo###

There are two methods for getting started with this repo.

####Familiar with Git?##### Checkout this repo, install depdencies, then start the process with the following:

	git clone https://github.com/sunkay/m-diary.git

	git clone https://github.com/sunkay/k-auth.git

Docker container instructions

This application depends on microservices.

  • m-diary (web-app)
  • k-auth (auth microservice)

   cd m-diary
   npm start
   # docker does not work with webpack since there is an issue with volumes and watch functionality
   # Issue: https://github.com/docker/docker/issues/18246
   # Until I find the right solution it is better to use plain old npm start
   #docker-compose up

   cd k-auth
   docker-compose up

m-diary's People

Contributors

sunkay avatar stephengrider avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

m-diary's Issues

Test

Testing the github API

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.