Git Product home page Git Product logo

gymii's Introduction

Gymii

Gymii is a simple calorie and strength tracker to help individuals reach their diet and weight lifting goals. Still a work in progress, the ultimate goal is to allow individuals to self-host their own health and wellness data on their local computers or home-server Bitcoin node in order to retain control of their personal health data.

Local Development

  • Install Node.js: https://nodejs.org/en/download/
  • Install NVM: https://github.com/nvm-sh/nvm#about
  • Switch environment to proper node version: nvm install && nvm use
  • Install NPX: npm install -g npx
  • Install Yarn: npm install -g yarn

Environment Variable Setup Up

  • Copy sample.env and create a new file with matches contents called .env

Database Set Up

Gymii currently runs on a PostgreSQL server.

  • Create a new database called gymii with a user called admin and a password of admin. Inside of your .env file set the DATABASE_URL config to postgresql://admin:admin@localhost:5432/gymii if it's not set already.

Prisma

Prisma is the currently used database schema and migration ORM selected for this project.

  • Regenerate Client: npx prisma generate
  • Seed Data: npx prisma db seed

In order to create future data migrations, run:

  • Generate Migration npx prisma migrate dev --name {name}

Starting the application

  • Run: yarn dev -o

Testing

  • Run: yarn test

Server tests are located in /server/tests

Architecture

WIP

TODO:

  • Utilize Docker to run app in order to deploy later to Umbrel, Embassy, etc.
  • Move testing fixture setup from server/tests/mocks/setup.ts in to organized server/tests/mocks/fixtures

Icons: https://icones.js.org/collection/ion?s=power

gymii's People

Contributors

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