A Angular 14+ single-page application for tracking user workouts.
- Node.js (v14 or higher)
- npm (v6 or higher)
- Angular CLI (v14 or higher)
- Clone the repository:
git clone https://github.com/VaraKare/health-challenge-tracker-t.git
cd health-challenge-tracker-t
- Install dependencies:
npm install
- Install Tailwind CSS:
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init
- Configure Tailwind CSS by updating tailwind.config.js:
module.exports = {
content: [
"./src/**/*.{html,ts}",
],
theme: {
extend: {},
},
plugins: [],
}
- Add Tailwind directives to src/styles.css:
@tailwind base;
@tailwind components;
@tailwind utilities;
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Run ng test
to execute the unit tests via Karma.
To generate code coverage report:
ng test --code-coverage
The coverage report will be available in the coverage
directory.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
- Add new users with workout details
- Display user workout list
- Search by username
- Filter by workout type
- Pagination
- Workout progress charts
- Data persistence using localStorage
- Unit tests with 100% coverage
- Responsive design with Tailwind CSS
- Workout types are predefined (Running, Cycling, Swimming, Yoga)
- Each user can have multiple workouts
- Local storage is used for data persistence
- Pagination shows 5 items per page
- Angular Material
- Chart.js for workout visualization
- Tailwind CSS for styling
The application is deployed on Vercel and can be accessed at [ health-tracker-ten-blush.vercel.app
].