Coder Social home page Coder Social logo

wajeht / gains Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 0.0 27.3 MB

All in one tools to help strength athletes load the right amount of training dosage!

Home Page: https://gains.jaw.dev/

License: GNU General Public License v3.0

JavaScript 37.51% Vue 60.90% HTML 0.64% Shell 0.06% Makefile 0.12% SCSS 0.78%
fitness powerlifting tracker workout bodybuilding gains bench deadlift squat vue

gains's Introduction

๐Ÿ’ช Gains

Node.js CI License: GPL v3 Open Source Love svg1

All in one tools to help strength athletes load the right amount of training dosage!

๐Ÿ“š Technologies

  • Node with Express for API
  • PostgreSQL for database
  • Knex for database migration
  • Vue 3 with Vite tooling for UI
  • Pinia for Vue state management
  • JWT for stateless authentication
  • Bootstrap 5 for basic styling
  • Vitest for unit testing
  • Chart.js for beautiful charts
  • Animate.css for ready-made animation
  • Font-awesome and Bootstrap-icon for icons
  • Command And Conquer (CAC) for CLI
  • GitHub actions for CI/CD
  • Caprover with Docker for for zero config deployment
  • AutoAnimate for drop-in animation
  • Redis to cache some of the large queries

๐Ÿ‘จโ€๐Ÿ’ป Getting started

Here below are some guides and docs to help set up your local development environment. Let us know if you have any questions!

๐Ÿ“ Structure

A mono repo with express and vue app combined. Express will serve vue generated dist as static public content on '/' routes and serving '/api/v1/*' for end-points.

for example:

// api end-points
import v1 from '/app/api/v1/api.v1.js';
app.use("/api/v1", v1);

// vue app
app.get("*", (req, res) => {
  // index.html will be generated from vite as vue dist
  res.sendFile('src/app/public/index.html);
})

Take a look at the following tree structure for better understanding.

.github/
.vscode/
docs/
logs/
src/
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ api/      # main entry point for api end-points
โ”‚   โ”‚   โ”œโ”€โ”€ middlewares/
โ”‚   โ”‚   โ””โ”€โ”€ v1/
โ”‚   โ”‚       โ”œโ”€โ”€ user/             # mvc structure with component specific
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ templates/    # email templates
โ”‚   โ”‚       โ”‚   โ”‚   โ””โ”€โ”€ happy-birthday.html
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ user.controller.js
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ user.model.js
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ user.service.js
โ”‚   โ”‚       โ”‚   โ”œโ”€โ”€ user.router.js
โ”‚   โ”‚       โ”‚   โ””โ”€โ”€ user.test.js
โ”‚   โ”‚       โ”œโ”€โ”€ comment/
โ”‚   โ”‚       โ”œโ”€โ”€ auth/
โ”‚   โ”‚       โ”œโ”€โ”€ video/
โ”‚   โ”‚       โ””โ”€โ”€ api.v1.js
โ”‚   โ”œโ”€โ”€ ui/       # main entry point for vue app
โ”‚   โ”‚   โ”œโ”€โ”€ assets/
โ”‚   โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ router/
โ”‚   โ”‚   โ”œโ”€โ”€ store/
โ”‚   โ”‚   โ”œโ”€โ”€ views/
โ”‚   โ”‚   โ”œโ”€โ”€ App.vue
โ”‚   โ”‚   โ”œโ”€โ”€ favicon.ico
โ”‚   โ”‚   โ”œโ”€โ”€ index.html
โ”‚   โ”‚   โ””โ”€โ”€ vue.js
โ”‚   โ”œโ”€โ”€ cli/   # cli app with admin commands
โ”‚   โ””โ”€โ”€ app.js
โ”œโ”€โ”€ bin/
โ”œโ”€โ”€ config/
โ”œโ”€โ”€ public/   # serving vue app from express backend
โ”œโ”€โ”€ crons/
โ”œโ”€โ”€ tests/
โ”œโ”€โ”€ utils/
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ vite.config.js

ยฉ License

Distributed under the GNU GPL V3 License ยฉ wajeht. See LICENSE for more information.

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.