Skip to content

unrar/medlog

Repository files navigation

MedLog

MedLog is a PHP application that, alongside a MySQL database, allows several users to register and have their own, private drug journal.

MedLog is now up and running here!

This can be used for logging all ingested drugs, both legal or illegal. It has many purposes, the main ones being:

  • Help people who might not remember if they have already taken their medication.

  • Harm reduction - elaborate trip reports, etc.

(NEW) As of v0.3, you only have to modify the config file in include/config.php with the data of your site and server.

(NEW) Now you can generate a trip report! Then, you can export it to an HTML or TXT file.

How to install?

You'll just need a simple HTTP, PHP and MySQL server - my choice for testing and developing is usually LAMP.

  1. Clone or HTTP download this project from GitHub to your htdocs directory: $ git clone https://github.com/unrar/medlog.git

  2. Create a medlog database and run the queries in medlog.sql on it. This can be done via SQL command line or PHPMyAdmin.

  3. Edit the include/config.php file. Basically you need to change the details of your SQL server and your site.

Screenshots

Home page:

Home page

My journal (don't take it too seriously):

My Journal

Editing an entry:

Editing an entry

Selecting entries for a trip report:

Trip selection

Downloaded HTML trip report:

HTML Trip

Downloaded TXT trip report:

TXT Trip

TODO

  • Set MedLog up in a public hosting. (It's up now!)

  • Improve CSS.

  • Add option to create a trip report (all entries from a given date) (Added on v0.2!).

  • Add AJAX to the Manage module (Added on v1.0!)

  • Create an API (Created mAPI on v1.0!)

  • Add AJAX to the Tripify module.

  • Manage trip reports through API.