Giter Club home page Giter Club logo

symptum's Introduction

Symptum

This is the code of the symptum application.

Symptum is an app that helps doctors make their differential diagnosis and allows the pharma industry to directly advertise new drugs.

Setup

We use docker to guarantee the same environment across all developers. Thus no one uses different library versions across machines, including system libraries.

Furthermore we use crane to orchestrate running our docker images with the same configuration across systems.

To use this project environment you need to install docker and crane.

Install Docker

https://docs.docker.com/engine/installation/#supported-platforms

For ubuntu you can go directly to: https://docs.docker.com/engine/installation/linux/ubuntu/

Also follow the post install steps for the docker user and auto start of docker https://docs.docker.com/engine/installation/linux/linux-postinstall/

Install crane

Then install crane. See: https://github.com/michaelsauter/crane

Install dependencies

As the npm packages are not commited to the git repository and docker images are mounted to the filesystem for development, you have to install the packages.

From the project root directory run:

cd frontend && crane run frontend npm install
cd ..
cd backend && crane run backend npm install

Note this step is only necessariy when we mount our local source code into the docker container during development. When running the docker container without mounting the local files, it will use the dependencies installed in the docker image. The crane configuration keyword for this is volume.

Add linter to git/hooks

To guarantee a consistent coding style, please add the linter to the projects git hooks:

cp backend/misc/git/pre-commit .git/hooks/pre-commit

How to use

Development

The crane.yml contains the orchestration configuration for the project.

To start the backend use:

crane run backend

It will automatically start the required postgres database and persist data to the persistence/ subfolder.

To start the frontend use:

crane run frontend

To connect both applications, you also need to run nginx:

crane run nginx

Production

Special production configuration is provided. The app can be deployed by using:

crane run production-nginx

This will start postgres, production-backend,production-frontend and pgadmin.

For updating production make sure to pull the new docker image and stop/remove the container that needs to be updated. Then restart nginx.

Example:

crane pull production-frontend
crane rm --force production frontend
crane run production-nginx

Contribution

  • Dennis-Florian Herr
    • Data creation and bootstrapping
    • Development & Production infrastructure
    • Backend Business logic & algorithms
    • Frontend loading spinner, 404, 500 & footer
  • Ivan Chimeno
    • Frontend structure, session management and routing.
    • Login, logout, signup and doctor workflow
  • Eldi Cano
    • Frontend pharma workflow
    • Frontend design
  • Florian Walter
    • Backend code structure
    • Database structure
    • REST API design, request handling validation

License

MIT

Copyright (c) 2019 Dennis-Florian Herr, Eldi Cano, Ivan Chimeno, Florian Walter

Created as part of the "SEBA Master - Web Application Engineering" 2019 @ TUM

symptum's People

Contributors

dfherr 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.