Giter Site home page Giter Site logo

rahadi28 / diseasecontrol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexanderc/diseasecontrol

0.0 0.0 0.0 425 KB

DiseaseControl is a disease control platform that facilitates end-to-end tracking of disease cases and resolutions keeping all nodes involved

Home Page: http://c19md.xyz/

License: MIT License

Dockerfile 0.20% Shell 2.64% JavaScript 96.50% HTML 0.65%

diseasecontrol's Introduction

DiseaseControl API

DiseaseControl is a disease control platform that facilitates end-to-end tracking of disease cases and resolutions keeping all nodes involved, starting from local level and growing up into a county wide level. This piece of software is originally designed to cover the needs of control software for Moldovan healthcare system for fighting against Coronavirus Covid-19.

The project started at C19.md Initiative Hackaton (March 2020).

Features:

  • Milestone I
    • Authentication and Authorization (RBAC)
    • Add ability to onboard hospitals and groups them (2 level structure for now)
    • Add ability to manage hospital “beds” and critical inventory (such as Lung Ventilation Systems, protective stuff, main medicine)
    • Add ability to see available “beds” (e.g. for an ambulance) depending on the patient state and his needs.
  • Milestone II
  • Milestone III
  • Milestone IV

Prerequisites

  • Git
  • Docker
  • NodeJS v12.x.x (for non docker usage)

Installation

Clone the project:

git clone https://github.com/AlexanderC/DiseaseControl.git
cd DiseaseControl

If you do NOT run docker mode you need to install dependencies by yourself by running npm install

Configure environment:

cp sample.env .env

You might want to edit .env to fill in your configuration

For testing purpose you might omit this step. System will use sample.env as configuration file, which might be enough so far.

Non-Docker Usage

Starting production server:

npm start

Monitoring production server:

npm run monitor

Starting development server:

npm run start:dev

Docker Usage

Build image:

cp .sample.env .docker.env # Adjust your configurations...
docker build -t dc-api .

Check if the image is available by running docker images

Run services:

docker-compose up -d

Check if services as up and running by using docker ps

Your application should have started on 0.0.0.0 at port 8000.

Seed Data

Run all database seeds:

npm run db:seeds:up

Drop all data seeded:

npm run db:seeds:down

Deploy

Deploy to a server you have SSH access given:

# Add DEPLOY_SEEDS=1 in case you need to run seeds, mainly on first deploy
# Add DEPLOY_SEEDS_RELOAD=1 if you want to re-run seeds (e.g. a new one added)
DEPLOY_SERVER_ROOT=/root/api [email protected] ./bin/deploy.sh

The server has to be set up as of section Prerequisites (except Git).

NPM and Node needs to be set up using nvm, which is the only one supported for now =(

If your database host is not resolving when DEPLOY_SEEDS=1 or DEPLOY_SEEDS_RELOAD=1 option added on deploy- add it to /etc/hosts (e.g. 127.0.0.1 database).

Links

TODO

diseasecontrol's People

Contributors

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