https://github.com/anuragp22/tracksmart

https://github.com/anuragp22/tracksmart

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.2%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: Anuragp22
  • Language: JavaScript
  • Default Branch: main
  • Size: 248 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme

README.md

Here is the updated README.md file based on your folder structure:


TrackSmart

A full-stack project with a Node.js backend and a Vite-based frontend, containerized using Docker Compose for a smooth development workflow.


Table of Contents


Folder Structure

TrackSmart/ ├── backend/ # Backend service (Node.js) │ ├── index.js # Main backend entry point │ ├── package.json # Backend dependencies │ ├── package-lock.json # Backend lockfile │ ├── Dockerfile # Dockerfile for backend │ ├── .gitignore # Ignore unnecessary backend files ├── frontend/ # Frontend service (Vite + React) │ ├── src/ # Frontend source code │ ├── public/ # Frontend public files │ ├── package.json # Frontend dependencies │ ├── package-lock.json # Frontend lockfile │ ├── Dockerfile # Dockerfile for frontend │ ├── .gitignore # Ignore unnecessary frontend files │ ├── vite.config.ts # Vite configuration file │ ├── tsconfig.json # TypeScript configuration ├── docker-compose.yml # Docker Compose configuration ├── README.md # Project documentation └── .dockerignore # Files to ignore in Docker builds


Getting Started

This project uses:

  • Node.js: For the backend API.
  • Vite: For the frontend React application.
  • Docker Compose: To containerize and orchestrate services.

Setup and Installation

Prerequisites

  • Install Docker and Docker Compose (version 2.22.0 or later).
  • Clone this repository: bash git clone https://github.com/Anuragp22/TrackSmart.git cd TrackSmart

Running the Application

  1. Build the Docker images:

bash docker compose build

  1. Start the services with Watch Mode:

bash docker compose up --watch

  1. Access the application:

Troubleshooting

  1. Frontend Not Accessible:
  • Ensure Vite is configured to bind to all network interfaces by adding --host to vite.config.ts: json "scripts": { "dev": "vite --host" }
  1. File Changes Not Detected:
  • Ensure CHOKIDAR_USEPOLLING=true is set in the environment variables for the frontend service in docker-compose.yml: ```yaml environment:
    • CHOKIDAR_USEPOLLING=true ```
  1. Clean Up and Restart:
  • If containers behave unexpectedly, clean up and rebuild: bash docker compose down --volumes docker compose build docker compose up
  1. Check Logs:
    • View logs for the backend: bash docker compose logs -f backend
    • View logs for the frontend: bash docker compose logs -f frontend

Owner

  • Name: Anurag Pappula
  • Login: Anuragp22
  • Kind: user

GitHub Events

Total
  • Push event: 6
  • Public event: 1
Last Year
  • Push event: 6
  • Public event: 1

Dependencies

backend/Dockerfile docker
  • node 18-alpine build
docker-compose.yml docker
frontend/Dockerfile docker
  • node 18 build
backend/package-lock.json npm
  • 147 dependencies
backend/package.json npm
  • bcryptjs ^2.4.3
  • cors ^2.8.5
  • dotenv ^16.4.7
  • express ^4.21.2
  • express-mongo-sanitize ^2.2.0
  • express-rate-limit ^7.5.0
  • express-validator ^7.2.1
  • helmet ^8.0.0
  • jsonwebtoken ^9.0.2
  • mongoose ^8.9.6
  • nodemon ^3.1.9
  • passport ^0.7.0
  • passport-google-oauth20 ^2.0.0
  • passport-jwt ^4.0.1
  • passport-local ^1.0.0
frontend/package-lock.json npm
  • 294 dependencies
frontend/package.json npm
  • @eslint/js ^9.17.0 development
  • @types/react ^18.3.18 development
  • @types/react-dom ^18.3.5 development
  • @vitejs/plugin-react ^4.3.4 development
  • autoprefixer ^10.4.20 development
  • eslint ^9.17.0 development
  • eslint-plugin-react-hooks ^5.0.0 development
  • eslint-plugin-react-refresh ^0.4.16 development
  • globals ^15.14.0 development
  • postcss ^8.5.1 development
  • tailwindcss ^3.4.17 development
  • typescript ~5.6.2 development
  • typescript-eslint ^8.18.2 development
  • vite ^6.0.5 development
  • react ^18.3.1
  • react-dom ^18.3.1