GithubHelp home page GithubHelp logo

vipulnaik / dietwatch Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 63 KB

A tracker for people's thoughts and state transitions related to diet, as well as the personal health, animal welfare, and environmental perspectives

HTML 9.05% PHP 47.30% NASL 7.51% Makefile 9.73% JavaScript 26.42%

dietwatch's Introduction

dietwatch

A tracker for people's thoughts and state transitions related to diet, as well as the personal health, animal welfare, and environmental perspectives

The portal to access the data is at dietwatch.vipulnaik.com.

Setting up

This section is for people who want to set up a local mirror of the dietwatch portal (e.g., for development purposes) or want to load up the data into a local database to run their own queries.

Note that the passwordFile.inc file in access-portal/backend/globalVariables is excluded from the Git repository, but you can modify a corresponding dummy password file at dummyPasswordFile.inc:

cp access-portal/backend/globalVariables/{dummyPasswordFile.inc,passwordFile.inc}
vi access-portal/backend/globalVariables/passwordFile.inc # change to add database login info

The database name is present both in dummyPasswordFile.inc and in the Makefile, so if you want a name other than dietwatch, you should edit the name in both places.

You can create the dietwatch database either directly in MySQL or by running this from the root folder of this repository, after updating MYSQL_ARGS in the Makefile (such as -u<username> -p<password>):

make init

Instead of editing the Makefile, you can also pass in the arguments to make:

make MYSQL_ARGS=<args> init

Loading and refreshing data

Once you already have the dietwatch SQL database set up, you can update the MYSQL_ARGS in the Makefile (such as -u<username> -p<password>) and you can then load the data using:

make reset && make read

Instead of editing the Makefile, you can also pass in the arguments to each make:

make MYSQL_ARGS=<args> reset && make MYSQL_ARGS=<args> read

Table sorting

To get files for table sorting, run:

make fetch_table_sorting

You can remove these files with make clean_table_sorting.

AnchorJS

To get AnchorJS, run:

make fetch_anchorjs

You can remove these files with make clean_anchorjs.

dietwatch's People

Contributors

vipulnaik avatar

Watchers

 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.