Skip to content

Project: Core Feature Prototyping for User Feedback. Created at https://spectra.codes, which is owned by @Drix10

Notifications You must be signed in to change notification settings

coslynx/project-1723912636967-e4sw0b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


project-1723912636967-e4sw0b

A web application for fitness goal tracking and social sharing.

Developed with the software and tools below.

Framework used for the project Frontend technologies used Backend technology used Database used LLMs used for development

Last commit date Commit activity Top programming language

πŸ“‘ Table of Contents

  • πŸ“ Overview
  • πŸ“¦ Features
  • πŸ“‚ Structure
  • πŸ’» Installation
  • πŸ—οΈ Usage
  • 🌐 Hosting
  • πŸ“„ License
  • πŸ‘ Authors

πŸ“ Overview

This repository houses the Minimum Viable Product (MVP) for a fitness goal tracker web application. The application aims to provide users with a platform to:

  • Set personalized fitness goals
  • Track their progress
  • Share achievements with their friends

The MVP is built using a modern tech stack, including:

  • React for the user interface
  • TypeScript for strong typing and code maintainability
  • Next.js for server-side rendering and static site generation
  • PostgreSQL for a robust and scalable database
  • Tailwind CSS for rapid prototyping and styling
  • Zustand for simple and efficient state management
  • Prisma ORM for easy database interactions
  • NextAuth.js for secure user authentication
  • Sentry for comprehensive error tracking and monitoring

πŸ“¦ Features

Feature Description
Goal Setting Users can create and customize their fitness goals with specific targets, deadlines, and tracking parameters.
Progress Tracking Users can monitor their progress towards goals by logging weight, exercise sessions, and other relevant data.
Social Sharing Users can connect with friends and share their achievements, providing encouragement and fostering a supportive community.
Data Visualization Visualizations (e.g., graphs, charts) offer insights into progress trends, motivating users to stay on track.
User-Friendly Interface The application is designed with a clear and intuitive user interface for ease of navigation and interaction.
Third-Party Integrations The application can integrate with popular fitness trackers and wearable devices for automated data capture.
Secure User Data Robust security measures protect user data, ensuring privacy and confidentiality.
Scalability The application is built with scalability in mind, capable of handling a growing user base and data volume.
Regular Updates The application will receive regular updates based on user feedback and industry trends.

πŸ“‚ Structure

fitness-goal-tracker/
β”œβ”€β”€ pages
β”‚   β”œβ”€β”€ api
β”‚   β”‚   └── auth
β”‚   β”‚       └── [...nextauth].js
β”‚   β”œβ”€β”€ _app.tsx
β”‚   β”œβ”€β”€ index.tsx
β”‚   β”œβ”€β”€ goals
β”‚   β”‚   └── page.tsx
β”‚   └── dashboard
β”‚       └── page.tsx
β”œβ”€β”€ components
β”‚   β”œβ”€β”€ GoalCard.tsx
β”‚   β”œβ”€β”€ GoalForm.tsx
β”‚   β”œβ”€β”€ GoalList.tsx
β”‚   β”œβ”€β”€ Header.tsx
β”‚   β”œβ”€β”€ Layout.tsx
β”‚   β”œβ”€β”€ Sidebar.tsx
β”‚   β”œβ”€β”€ SocialFeed.tsx
β”‚   β”œβ”€β”€ Profile.tsx
β”‚   └── InputField.tsx
β”œβ”€β”€ styles
β”‚   └── globals.css
β”œβ”€β”€ prisma
β”‚   β”œβ”€β”€ migrations
β”‚   β”‚   └── 20231120115405_init
β”‚   β”‚       └── migration.sql
β”‚   └── schema.prisma
β”œβ”€β”€ utils
β”‚   β”œβ”€β”€ helpers.js
β”‚   └── index.js
β”œβ”€β”€ .eslintrc.js
β”œβ”€β”€ next.config.mjs
β”œβ”€β”€ tailwind.config.js
β”œβ”€β”€ tsconfig.json
β”œβ”€β”€ postcss.config.mjs
└── package.json

πŸ’» Installation

πŸ”§ Prerequisites

  • Node.js
  • npm
  • Docker (Optional for database setup)

πŸš€ Setup Instructions

  1. Clone the repository:
    • git clone https://github.com/spectra-ai-codegen/project-1723912636967-e4sw0b.git
  2. Navigate to the project directory:
    • cd project-1723912636967-e4sw0b
  3. Install dependencies:
    • npm install
  4. Setup the database:
    • Option 1 (Docker):
      • docker-compose up -d
    • Option 2 (Local PostgreSQL):
      • Install PostgreSQL locally
      • Create a new database
      • Configure database credentials in .env file
  5. Run database migrations:
    • npx prisma db push

πŸ—οΈ Usage

πŸƒβ€β™‚οΈ Running the Application

  1. Start the development server:
    • npm run dev
  2. Open your browser and navigate to http://localhost:3000.

βš™οΈ Configuration

Adjust configuration settings in next.config.mjs or .env files as needed.

πŸ“š Examples

  • Goal Creation: Create a new fitness goal with a specific target, deadline, and tracking parameters.
  • Progress Logging: Log your weight, exercise sessions, and other data to track progress towards goals.
  • Social Sharing: Connect with friends, share your achievements, and provide encouragement.
  • Data Visualization: Explore data visualizations (e.g., graphs, charts) to gain insights into your progress trends.

🌐 Hosting

πŸš€ Deployment Instructions

Vercel (Recommended)

  1. Create a new Vercel project.
  2. Connect the repository to Vercel.
  3. Deploy the application using Vercel's deployment tools.

Netlify

  1. Create a new Netlify site.
  2. Connect the repository to Netlify.
  3. Deploy the application using Netlify's deployment tools.

Heroku (Alternative)

  1. Install the Heroku CLI: npm install -g heroku
  2. Login to Heroku: heroku login
  3. Create a new Heroku app: heroku create
  4. Configure environment variables (DB_HOST, DB_USER, DB_PASS) in Heroku.
  5. Deploy the code: git push heroku main

πŸ”‘ Environment Variables

  • NEXT_PUBLIC_APP_NAME: The name of your application (e.g., "Fitness Goal Tracker")
  • NEXTAUTH_URL: Your application's URL (e.g., "http://localhost:3000")
  • NEXTAUTH_SECRET: A secret key for securing authentication (generate using openssl rand -base64 32)
  • DATABASE_URL: The URL of your PostgreSQL database (e.g., postgresql://user:password@host:port/database)
  • SENTRY_DSN: Your Sentry DSN for error tracking (optional)

πŸ“œ License

This application is licensed under the MIT License.

πŸ‘₯ Authors

🌐 Spectra.Codes

Why only generate Code? When you can generate the whole Repository!

Developer name Website name Backed by Finalist