A web application designed to empower fitness enthusiasts to track their progress, stay motivated, and connect with a supportive community.
- π Overview
- π¦ Features
- π Structure
- π» Installation
- ποΈ Usage
- π Hosting
- π License
- π Authors
This repository contains the FitTrack MVP, a web application designed to empower fitness enthusiasts to track their progress, stay motivated, and connect with a supportive community.
Feature | Description | |
---|---|---|
π | User Authentication | Secure sign-up and login using email/password or social media accounts like Google or Facebook. This ensures user privacy and data security. |
π― | Personalized Goal Setting | Empowering users to define individual fitness goals with specific targets and timelines, allowing for a customized approach to fitness. |
π | Progress Tracking and Visualization | Providing tools to log workouts, dietary information, and track progress towards set goals in a clear and engaging manner. |
π€ | Social Sharing and Community Building | Facilitating the sharing of progress updates, achievements, and motivational messages with friends and followers, fostering a supportive community. |
π¨ | User-Friendly Interface | Developing an intuitive and easy-to-navigate interface that ensures a seamless user experience. |
π | Scalability | The application is designed to handle a growing user base and increasing data volume. |
π‘οΈ | Security | Robust security measures are implemented to protect user data and ensure a safe and secure experience. |
FitTrack
βββ components
β βββ Button.tsx
β βββ Header.tsx
β βββ Layout.tsx
β βββ GoalInput.tsx
β βββ ProgressChart.tsx
β βββ SocialShareButton.tsx
βββ pages
β βββ api
β β βββ auth.ts
β β βββ goals.ts
β β βββ progress.ts
β βββ _app.tsx
β βββ index.tsx
β βββ dashboard.tsx
β βββ login.tsx
βββ styles
β βββ global.css
βββ utils
β βββ helpers.ts
β βββ api.ts
β βββ auth.ts
β βββ validation.ts
βββ config
β βββ next-auth.config.ts
βββ middleware
β βββ authentication.ts
βββ .env
βββ package.json
βββ README.md
βββ tailwind.config.ts
βββ tsconfig.json
- Node.js
- npm
- Docker
- Clone the repository:
git clone https://github.com/<github account username>/FitTrack.git
- Navigate to the project directory:
cd FitTrack
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and navigate to http://localhost:3000.
Adjust configuration settings in .env
and next.config.js
.
- π Example 1: How to set a new fitness goal.
- π Example 2: How to log a workout and track progress.
- π Example 3: How to connect with friends and share progress updates.
- Sign up for a Vercel account.
- Install the Vercel CLI:
npm install -g vercel
- Initialize Vercel in your project:
vercel init
- Deploy your project:
vercel deploy
- Install the Heroku CLI:
npm install -g heroku
- Log in to Heroku:
heroku login
- Create a new Heroku app:
heroku create <app-name>
- Set environment variables:
heroku config:set DB_HOST=<your_db_host> DB_USER=<your_db_user> DB_PASS=<your_db_password>
- Deploy your project:
git push heroku main
- GET /api/goals: Retrieves a list of user goals.
- POST /api/goals: Creates a new goal.
- PUT /api/goals/:id: Updates a goal.
- DELETE /api/goals/:id: Deletes a goal.
- POST /api/progress: Logs a new workout.
- GET /api/progress/:goalId: Retrieves progress data for a specific goal.
Use JSON Web Tokens (JWT) for authentication.
curl -X GET http://localhost:3000/api/goals
This project is licensed under the MIT License - see the LICENSE file for details.
- Author Name - Spectra.codes
- Creator Name - DRIX10
Why only generate Code? When you can generate the whole Repository!