- π Overview
- π¦ Features
- π Structure
- π» Installation
- ποΈ Usage
- π Hosting
- π License
- π Authors
This repository contains the source code for a Fitness Tracker MVP, built to empower individuals to set, track, and achieve their fitness goals. It features a user-friendly interface, personalized goal setting, detailed progress tracking, and a supportive social community.
Feature | Description | |
---|---|---|
π | User Authentication | Secure user registration and login using NextAuth.js, supporting multiple providers like Google, Facebook, and email. |
π― | Goal Setting | Set personalized fitness goals with specific targets and deadlines. |
π | Progress Tracking | Track workouts, activities, and nutrition intake. |
π€ | Social Sharing | Share progress updates and connect with other users to build a supportive community. |
π | Data Visualization | Visualize progress with interactive charts and graphs for insights and motivation. |
π‘οΈ | Security | Robust security measures to protect user data and ensure a safe and private experience. |
Fitness-Tracker-Goal-MVP
βββ 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
- PostgreSQL
- Clone the repository:
git clone https://github.com/coslynx/Fitness-Tracker-Goal-MVP.git
- Navigate to the project directory:
cd Fitness-Tracker-Goal-MVP
- Install dependencies:
npm install
- Set up PostgreSQL:
- Create a PostgreSQL database.
- Update the
.env
file with your database credentials (DATABASE_URL).
- Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000
.
Adjust configuration settings in next.config.js
or .env
.
- π Example 1: Create a new fitness goal from the dashboard page.
- π Example 2: Log a workout using the workout tracking feature.
- π Example 3: Share your progress update on the social feed.
- Login to Vercel:
vercel login
- Initialize Vercel project:
vercel init
- Deploy the application:
vercel
- Login to Netlify:
netlify login
- Create a new Netlify site:
netlify init
- Deploy the application:
netlify deploy
- Create a new branch named
gh-pages
:git checkout -b gh-pages
- Build the application for production:
npm run build
- Commit the build output to the
gh-pages
branch:git add .
git commit -m "Deploy to GitHub Pages"
git push origin gh-pages
- Configure your GitHub repository to use the
gh-pages
branch for GitHub Pages deployment.
DATABASE_URL
: Your PostgreSQL database connection string.
- POST /api/auth/login: Authenticate a user.
- POST /api/auth/register: Register a new user.
- GET /api/goals/:userId: Retrieve goals for a specific user.
- POST /api/goals: Create a new goal for the current user.
- PUT /api/goals/:id: Update a goal.
- DELETE /api/goals/:id: Delete a goal.
- POST /api/progress: Log a new workout for the current user.
- GET /api/progress/:userId: Retrieve workout history for a specific user.
Use JWT (JSON Web Tokens) for authentication. The tokens are generated and verified using NextAuth.js.
- Login:
curl -X POST http://localhost:3000/api/auth/login -H "Content-Type: application/json" -d '{"email": "[email protected]", "password": "your_password"}'
- Register:
curl -X POST http://localhost:3000/api/auth/register -H "Content-Type: application/json" -d '{"email": "[email protected]", "password": "your_password", "name": "Your Name"}'
This Fitness Tracker MVP is licensed under the GNU AGPLv3 license.
This MVP was entirely generated using artificial intelligence through CosLynx.com.
No human was directly involved in the coding process of the repository: Fitness-Tracker-Goal-MVP
For any questions or concerns regarding this AI-generated MVP, please contact CosLynx at:
- Website: CosLynx.com
- Twitter: @CosLynxAI
Create Your Custom MVP in Minutes With CosLynxAI!