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
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
Metadata Files
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
- Getting Started
- Setup and Installation
- Running the Application
- Development Workflow
- Troubleshooting
- Contribution
- License
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
- Build the Docker images:
bash
docker compose build
- Start the services with Watch Mode:
bash
docker compose up --watch
- Access the application:
- Frontend: http://localhost:5173
- Backend: http://localhost:3001
Troubleshooting
- Frontend Not Accessible:
- Ensure Vite is configured to bind to all network interfaces by adding
--hosttovite.config.ts:json "scripts": { "dev": "vite --host" }
- File Changes Not Detected:
- Ensure
CHOKIDAR_USEPOLLING=trueis set in the environment variables for the frontend service indocker-compose.yml: ```yaml environment:- CHOKIDAR_USEPOLLING=true ```
- Clean Up and Restart:
- If containers behave unexpectedly, clean up and rebuild:
bash docker compose down --volumes docker compose build docker compose up
- Check Logs:
- View logs for the backend:
bash docker compose logs -f backend - View logs for the frontend:
bash docker compose logs -f frontend
- View logs for the backend:
Owner
- Name: Anurag Pappula
- Login: Anuragp22
- Kind: user
- Repositories: 1
- Profile: https://github.com/Anuragp22
GitHub Events
Total
- Push event: 6
- Public event: 1
Last Year
- Push event: 6
- Public event: 1
Dependencies
- node 18-alpine build
- node 18 build
- 147 dependencies
- 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
- 294 dependencies
- @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