{"id":29338378,"url":"https://github.com/vladislavalerievich/gym-log","last_synced_at":"2025-07-08T06:13:25.549Z","repository":{"id":39547385,"uuid":"507010619","full_name":"vladislavalerievich/gym-log","owner":"vladislavalerievich","description":"Workout tracker built with Django \u0026 React","archived":false,"fork":false,"pushed_at":"2024-06-30T19:06:46.000Z","size":489,"stargazers_count":30,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-04T10:14:08.169Z","etag":null,"topics":["django","django-postgresql","django-react","django-rest-framework","docker","formik-yup","heroku-deployment","jwt-authentication","python","react","react-query","redux-toolkit","workout-app","workout-tracker"],"latest_commit_sha":null,"homepage":"https://gym-log.herokuapp.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vladislavalerievich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-24T12:56:23.000Z","updated_at":"2024-07-03T04:50:49.000Z","dependencies_parsed_at":"2023-02-10T04:31:06.213Z","dependency_job_id":null,"html_url":"https://github.com/vladislavalerievich/gym-log","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vladislavalerievich/gym-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladislavalerievich%2Fgym-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladislavalerievich%2Fgym-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladislavalerievich%2Fgym-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladislavalerievich%2Fgym-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladislavalerievich","download_url":"https://codeload.github.com/vladislavalerievich/gym-log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladislavalerievich%2Fgym-log/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264208388,"owners_count":23572990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-postgresql","django-react","django-rest-framework","docker","formik-yup","heroku-deployment","jwt-authentication","python","react","react-query","redux-toolkit","workout-app","workout-tracker"],"created_at":"2025-07-08T06:13:22.559Z","updated_at":"2025-07-08T06:13:25.521Z","avatar_url":"https://github.com/vladislavalerievich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gym Log\n\nFull Stack Django \u0026 React Web App with JWT authentication.\n\nThis repo can be used as a starting point for developing a production-ready application using Django, React, and\nPostgres in a Dockerized environment with deployment to Heroku.\n\n## Live web app\n\nTo access the React application, go to [gym-log.herokuapp.com](https://gym-log.herokuapp.com/).\n\nTo access the Django Swagger API endpoints, go\nto [gym-log.herokuapp.com/swagger/](https://gym-log.herokuapp.com/swagger/).\n\n\u003e **_NOTE:_**  The web application may take a few seconds to start up.\n\n---\n![Live web app screenshot](https://i.ibb.co/jLYCLP4/Screenshot-2024-06-30-205650.png)\n\n## Motivation for creating the app\n\nI liked the mobile version of the [strong app](https://www.strong.app/) that allows logging workouts, viewing them, and\ngetting a list of available exercises. So I implemented the basic functionality of\nthe [strong app](https://www.strong.app/) in a CRUD Web Application with Django \u0026 React.\n\n## Local deployment\n\n1) Install docker: https://docs.docker.com/get-docker/\n2) Clone github repo.\n3) Run: `docker-compose up --build`.\n\nTo access the fronted part of application open [http://localhost:3000](http://localhost:3000) in your browser.\n\nTo view `Swagger API endpoints` open [http://localhost:8000/swagger/](http://localhost:8000/swagger/) in your browser.\n\nTo view `Django admin site` open [http://localhost:8000/admin/](http://localhost:8000/admin/) in your browser.\n\n## Production deployment\n\n1) [Create Heroku Account](https://signup.heroku.com/dc)\n2) [Download/Install/Setup Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli#download-and-install)\n3) After installation, log into Heroku CLI: `heroku login`.\n4) Run: `heroku create \u003cyour app name\u003e` to create the Heroku application.\n5) Run: `heroku stack:set container` so Heroku knows this is a containerized application.\n6) Run: `heroku addons:create heroku-postgresql:hobby-dev` which creates the postgres add-on for Heroku.\n7) Set a `SECRET_KEY` in Heroku config vars settings.\n8) Set the URL of your application, e.g. `https://\u003capp name\u003e.herokuapp.com`, into environment variable `HOST_NAME` in\n   Heroku config vars settings.\n9) Deploy your app by running: `git push heroku master`.\n10) Go to `\u003cyour app name\u003e.herokuapp.com` to see the published web application.\n\n### Dockerfile.prod\n\nHeroku uses multi-stage Docker build `Dockerfile.prod` file to build and run the application.\n\nIf you want to build and run the production Dockerfile locally, use these commands:\n\n```shell\ndocker build --build-arg=PORT=\u003cport num\u003e -t gym-log:latest .  \ndocker run -it -p \u003cport num\u003e:\u003cport num\u003e gym-log:latest\n```\n\n---\n\n### Main tools and libraries\n\nBackend:\n\n- `Django` as a web framework.\n- `Django REST framework` for building web APIs, serialization, and deserialization.\n- `JWT authentication` for securely transmitting information between frontend and backend applications.\n- `PostgreSQL` as a database in production.\n\nFrontend:\n\n- `React` for building user interface.\n- `React Bootstrap` for simplifying the creation and styling of React components.\n- `React Query` for managing server state, getting data from the backend, and updating it.\n- `Redux` for managing application state. And `Redux Persist` to store state between page reloads.\n- `Formik` and `Yup` for object schema validation for login and register pages.\n\n### Ideas for improvement\n\n- Add logic for email confirmation on registration.\n- Add logic for password reset on the login page.\n- Add internationalization for several languages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladislavalerievich%2Fgym-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladislavalerievich%2Fgym-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladislavalerievich%2Fgym-log/lists"}