https://github.com/devqueue/assaydashboard
https://github.com/devqueue/assaydashboard
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/devqueue/assaydashboard
- Owner: devqueue
- License: mit
- Created: 2022-02-02T03:16:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-12T10:26:04.000Z (about 4 years ago)
- Last Synced: 2024-10-12T00:30:48.357Z (over 1 year ago)
- Language: CSS
- Size: 895 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Assaydashboard
A Dashboard application built using django and chart.js
## Data requirements
1. The uploaded CSV files must contain be in the following format.
| Assay | January | November | December | Year | AssayID | MachineID |
| ----------------------------------------- | ------- | -------- | -------- | ---- | ------------- | ------------------- |
| Sick panel (MS/MS) | 279 | 219 | 220 | 2020 | SICKPANEL\_20 | FI-MSMS |
| Urine organic Acid (UOA) | 119 | 101 | 127 | 2020 | UOA\_20 | GC-MS |
| Plasma Amino Acid (PAA) | 69 | 0 | 5 | 2020 | PAA\_20 | Amino acid analyzer |
| Plasma Very Long Chain Fatty Acid (VLCFA) | 28 | 48 | 54 | 2020 | VLCFA\_20 | LC-MSMS-1 |
| Serum Methyl Maalonic Acid (MMA) | 44 | 44 | 40 | 2020 | MMA\_20 | LC-MSMS-2 |
| Serum Biotinidase | 16 | 11 | 36 | 2020 | SERUM\_20 | Spectrophotometer |
2. The assayID and machineID must be unique. and the ID must the 2 digit year for the corresponding data.
3. The app is designed such that the user uploads the sample collected data every month, for the same ASSAYID's.
## ✨ Deploy in production using `Docker`
> Get the code
```bash
$ git clone
$ cd genelookup
```
> Configure environment variables
```
1. Create a .env file and paste the contents.
DEBUG=1
DB_NAME=dbname
DB_USER=rootuser
DB_PASS=changeme
SECRET_KEY=changeme
ALLOWED_HOSTS=127.0.0.1
2. Change the variables to store real values.
3. Allowed hosts can be a comma seperated list of multiple hosts (IP's or domain names)
```
> Start the app in Docker
```bash
$ docker-compose up --build
$ docker-compose run --rm app sh -c "python manage.py createsuperuser"
```
Visit `http://localhost:80` in your browser. The app should be up & running.
## ✨ How to use it for development
The development deployment provies hot reloading for the code to update in real time
```bash
$ # Get the code
$ git clone
$ cd genelookup
$
$
$ # Docker compose
$ docker-compose -f docker-compose-dev.yml up --build
$
$ # open a new terminal and run
$ docker-compose -f docker-compose-dev.yml run --rm app sh -c "python manage.py createsuperuser"
$
$ # Access the web app in browser: http://127.0.0.1/
```