hainsdominic / patientprogress

A free and open-source medical professional-patient interface to facilitate medical research. Made with React and Express.
GNU Affero General Public License v3.0
0 stars 2 forks source link

PatientProgress

CircleCI

Netlify Status

Medical dashboard for research

PatientProgress is a mobile-ready front-end application built with React and a RESTful API built with Node. The PatientProgress web-app is made to facilitate medical research, while being very convenient and time-saving for the professional and the patient.

Features

Patient

Professional

Researcher

Tech

Codebases Description
server Express API
client CRA React App

PatientProgress uses a number of open source projects to work properly:

Installation

PatientProgress requires Node.js V10+ to run.

Go to package/server/config/ and create a new file named config.env

Replace "production" by "development" depending on your environment

NODE_ENV=production
PORT=5000

Go to package/server/config/ and create a new file named default.json

{
  "mongoURI_dev": "<YOUR_MONGO_DEVELOPMENT_URL>",
  "mongoURI_prod": "<YOUR_MONGO_PRODUCTION_URL>",
  "jwtSecret": "<YOUR_JWT_SECRET>",
  "recaptchaSecret": "<YOUR_RECAPTCHA_SECRET>",
  "TelegramAPIKey": "<YOUR_TELEGRAM_API_KEY>",
  "TelegramChatID": "<YOUR_TELEGRAM_CHAT_ID>",
  "nodemailerHost": "<YOUR_EMAIL_PROVIDER (stmp server)>",
  "nodemailerPort": "<YOUR_EMAIL_PORT>",
  "nodemailerUser":"<YOUR_EMAIL>",
  "nodemailerPass":"<YOUR_EMAIL_PASSWORD>"
}

Install the dependencies and devDependencies and start the server.

yarn install
node package/server/server.js

Then build and serve the CRA React application

The default API call will be dispatched to the official API. This will be an environment variable soon.

cd package/client
yarn build
serve -s build

Development

PatientProgress uses Create-React-App, yarn and lerna for fast developing. Make a change in your file and instantaneously see your updates!

Open your favorite Terminal and run these commands.

yarn dev

Team

Dominic Hains - Maintainer & Developer