Web application for fitness enthusiasts to track their progress, set goals, and share their achievements.
- π Overview
- π¦ Features
- π Structure
- π» Installation
- ποΈ Usage
- π Hosting
- π License
- π Authors
The repository contains a Minimum Viable Product (MVP) called "FitTrack-ejrd48" that provides a comprehensive solution for fitness enthusiasts to effectively track their fitness goals, monitor their progress, and celebrate their achievements with their social network. This web application will enable users to set personalized fitness goals, record their workouts and progress, and share their achievements with friends and family. The application is built using modern web technologies, including HTML, CSS, JavaScript, and the Next.js framework with a Node.js backend and a PostgreSQL database.
Feature | Description | |
---|---|---|
βοΈ | Architecture | The codebase follows a modular architectural pattern with separate directories for different functionalities, ensuring easier maintenance and scalability. |
π | Documentation | The repository includes a README file that provides a detailed overview of the Minimum Viable Product (MVP), its dependencies, and usage instructions. |
π | Dependencies | The codebase relies on various external libraries and packages such as React, uuid, esbuild, and eslint, which are essential for building and styling the UI components, and handling external services. |
𧩠| Modularity | The modular structure allows for easier maintenance and reusability of the code, with separate directories and files for different functionalities such as background, components, and content. |
π§ͺ | Testing | Implement unit tests using frameworks like Jest or React Testing Library to ensure the reliability and robustness of the codebase. |
β‘οΈ | Performance | The performance of the system can be optimized based on factors such as the browser and hardware being used. Consider implementing performance optimizations for better efficiency. |
π | Security | Enhance security by implementing measures such as input validation, data encryption, and secure communication protocols. |
π | Version Control | Utilizes Git for version control with GitHub Actions workflow files for automated build and release processes. |
π | Integrations | Interacts with browser APIs, external services through HTTP requests, and includes integrations with speech recognition and synthesis APIs. |
πΆ | Scalability | Design the system to handle increased user load and data volume, utilizing caching strategies and cloud-based solutions for better scalability. |
βββ pages
β βββ api
β β βββ auth
β β βββ [...nextauth].js
β βββ _app.js
β βββ index.js
β βββ dashboard
β β βββ page.js
β βββ goals
β β βββ page.js
β βββ workouts
β β βββ page.js
β βββ social
β β βββ page.js
β βββ profile
β βββ page.js
βββ components
β βββ Header.js
β βββ Footer.js
β βββ GoalCard.js
β βββ WorkoutCard.js
β βββ ProgressChart.js
β βββ SocialFeed.js
β βββ LoginForm.js
β βββ SignupForm.js
β βββ UserProfile.js
β βββ UserGoal.js
βββ utils
β βββ helpers.js
β βββ constants.js
βββ prisma
β βββ schema.prisma
βββ .env
βββ tailwind.config.js
βββ postcss.config.js
βββ next.config.js
βββ tsconfig.json
- Node.js
- npm
- Docker
- Clone the repository:
git clone https://github.com/spectra-ai-codegen/FitTrack-ejrd48.git
- Navigate to the Minimum Viable Product (MVP) directory:
cd FitTrack-ejrd48
- Install dependencies:
npm install
- Start the development server:
npm start
- Open your browser and navigate to http://localhost:3000.
Adjust configuration settings in config.js
or .env
.
- π Example 1: Setting a fitness goal
- Go to the
goals
page. - Select the type of goal (e.g., weight loss, muscle gain).
- Enter the target value and deadline.
- Click "Set Goal" to save the goal.
- Go to the
- π Example 2: Logging a workout
- Go to the
workouts
page. - Select the type of exercise (e.g., cardio, strength training).
- Enter the duration and intensity level.
- Click "Log Workout" to save the workout.
- Go to the
- π Example 3: Sharing a fitness achievement
- Go to the
social
page. - Click "Create Post" to share a workout achievement, progress update, or motivational message.
- Select your audience (e.g., friends, followers).
- Click "Post" to share the update.
- Go to the
- Install the Heroku CLI:
npm install -g heroku
- Login to Heroku:
heroku login
- Create a new Heroku app:
heroku create
- Deploy the code:
git push heroku main
DB_HOST
: Database hostDB_USER
: Database userDB_PASS
: Database password
- GET /api/users: Retrieves a list of users.
- POST /api/users: Creates a new user.
- GET /api/goals: Retrieves a list of goals for a user.
- POST /api/goals: Creates a new goal for a user.
- GET /api/workouts: Retrieves a list of workouts for a user.
- POST /api/workouts: Logs a new workout for a user.
Use JWT tokens for authentication.
curl -X GET http://localhost:3000/api/users
This Minimum Viable Product (MVP) is licensed under the GNU AGPLv3.
- Author Name - Spectra.codes
- Creator Name - DRIX10
Why only generate Code? When you can generate the whole Repository!