Skip to content

Project: Initial Concept Testing Platform 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-1723923816134-0jx0dz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

34 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


project-1723923816134-0jx0dz

Web application to set, track, and share fitness goals

Developed with the software and tools below.

Framework used: Next.js Frontend languages used: JavaScript, HTML, CSS Backend framework: Node.js LLMs used: Custom, Gemini, OpenAI

git-last-commit GitHub commit activity GitHub top language

πŸ“‘ Table of Contents

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

πŸ“ Overview

This repository contains the Minimum Viable Product (MVP) for a web application called "Fitness Goal Tracker." The MVP provides a user-friendly platform for setting, tracking, and sharing fitness goals, aiming to enhance user motivation and engagement. It leverages a robust technology stack, including Next.js for the frontend, Node.js for the backend, and PostgreSQL for database storage. The application is built with a focus on modularity, scalability, and user experience.

πŸ“¦ Features

Feature Description
User Authentication Secure user registration and login using NextAuth.js with support for multiple providers (e.g., Google).
Goal Setting Create personalized fitness goals with specific details (type, target, start/end dates) and track progress.
Goal Tracking Automatically track progress based on user input and data from wearable devices.
Data Visualization Visualize progress using interactive charts and graphs.
Social Feed Share progress updates with friends and other users in a dedicated social feed.
Community Features (Future expansion) Join groups and forums based on fitness interests to connect with like-minded individuals.
Personalized Insights (Future expansion) Generate data-driven insights and recommendations based on user activity.
User-Friendly Interface Clean, intuitive interface for easy navigation and interaction.
Robust Error Handling Implement comprehensive error handling and logging to ensure a stable and reliable experience.
Scalable Architecture Design the application to handle increased user load and data volume.

πŸ“‚ Structure

project-1723923816134-0jx0dz/
β”œβ”€β”€ pages
β”‚   β”œβ”€β”€ _app.tsx
β”‚   β”œβ”€β”€ index.tsx
β”‚   β”œβ”€β”€ goals
β”‚   β”‚   β”œβ”€β”€ create.tsx
β”‚   β”‚   β”œβ”€β”€ edit.tsx
β”‚   β”‚   β”œβ”€β”€ view.tsx
β”‚   β”‚   └── index.tsx
β”‚   β”œβ”€β”€ profile
β”‚   β”‚   β”œβ”€β”€ index.tsx
β”‚   β”‚   └── settings.tsx
β”‚   β”œβ”€β”€ login
β”‚   β”‚   └── index.tsx
β”‚   β”œβ”€β”€ signup
β”‚   β”‚   └── index.tsx
β”‚   └── dashboard
β”‚       └── index.tsx
β”œβ”€β”€ components
β”‚   β”œβ”€β”€ Header.tsx
β”‚   β”œβ”€β”€ Footer.tsx
β”‚   β”œβ”€β”€ GoalCard.tsx
β”‚   β”œβ”€β”€ GoalForm.tsx
β”‚   β”œβ”€β”€ GoalList.tsx
β”‚   β”œβ”€β”€ ProgressChart.tsx
β”‚   β”œβ”€β”€ SocialFeed.tsx
β”‚   β”œβ”€β”€ UserCard.tsx
β”‚   β”œβ”€β”€ Input.tsx
β”‚   β”œβ”€β”€ Button.tsx
β”‚   β”œβ”€β”€ Dropdown.tsx
β”‚   └── Modal.tsx
β”œβ”€β”€ styles
β”‚   β”œβ”€β”€ globals.css
β”‚   └── tailwind.config.js
β”œβ”€β”€ utils
β”‚   β”œβ”€β”€ helpers.js
β”‚   └── api.js
β”œβ”€β”€ prisma
β”‚   β”œβ”€β”€ schema.prisma
β”‚   └── migrations
β”‚       └── 20231027144926_init
β”‚           └── migration.sql
β”œβ”€β”€ server
β”‚   └── index.js
β”œβ”€β”€ next.config.js
β”œβ”€β”€ tsconfig.json
└── 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-1723923816134-0jx0dz.git
  2. Navigate to the project directory:
    • cd project-1723923816134-0jx0dz
  3. Install dependencies:
    • npm install
  4. (Optional) Set up the database:
    • Follow the instructions in the prisma/ directory to set up PostgreSQL. You can use Docker to simplify the setup process.

πŸ—οΈ Usage

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

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

βš™οΈ Configuration

  • Environment Variables: Create a .env file in the root directory and set the following environment variables:
    • DATABASE_URL: The connection URL for your PostgreSQL database.
    • NEXTAUTH_URL: The URL of your Next.js application (e.g., http://localhost:3000).
    • NEXTAUTH_SECRET: A secret key for NextAuth.js authentication.
    • GOOGLE_CLIENT_ID: Google Client ID (for Google authentication).
    • GOOGLE_CLIENT_SECRET: Google Client Secret (for Google authentication).

🌐 Hosting

πŸš€ Deployment Instructions

  1. Set up a hosting platform: Choose a platform like Vercel, Netlify, or Heroku.
  2. Configure environment variables: Set the necessary environment variables for your chosen hosting platform.
  3. Deploy: Follow the deployment instructions specific to your chosen platform.

Example: Deployment to Vercel

  1. Create a Vercel account: If you don't have one already.
  2. Initialize Vercel: vercel init
  3. Deploy: vercel deploy

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘ Authors

🌐 Spectra.Codes

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

Developer: Drix10 Website: Spectra.codes Backed by: Google, Microsoft & Amazon for Startups Finalist: Backdrop Build v4