Skip to content

Project: Streamlined User Authentication and Onboarding. Created at https://spectra.codes, which is owned by @Drix10

Notifications You must be signed in to change notification settings

coslynx/project-1723923224852-6a6nli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

36 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


project-1723923224852-6a6nli

Web application to set, track, and share fitness goals.

Developed with the software and tools below.

Framework: Next.js Frontend: TypeScript, HTML, CSS Backend: Node.js Database: PostgreSQL

git-last-commit GitHub commit activity GitHub top language

πŸ“‘ Table of Contents

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

πŸ“ Overview

The repository contains a Minimum Viable Product (MVP) called "Fitness Goal Tracker" that provides a web application for users to set, track, and share their fitness goals. It utilizes a robust tech stack comprising Next.js, TypeScript, HTML, CSS, Node.js, PostgreSQL, and Prisma.

πŸ“¦ Features

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 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.

πŸ“‚ Structure

β”œβ”€β”€ pages
β”‚   β”œβ”€β”€ api
β”‚   β”‚   β”œβ”€β”€ activities
β”‚   β”‚   β”‚   └── route.ts
β”‚   β”‚   β”œβ”€β”€ auth
β”‚   β”‚   β”‚   └── route.ts
β”‚   β”‚   β”œβ”€β”€ goals
β”‚   β”‚   β”‚   └── route.ts
β”‚   β”‚   └── users
β”‚   β”‚       └── route.ts
β”‚   β”œβ”€β”€ _app.tsx
β”‚   β”œβ”€β”€ index.tsx
β”‚   β”œβ”€β”€ goals
β”‚   β”‚   └── page.tsx
β”‚   β”œβ”€β”€ activities
β”‚   β”‚   └── page.tsx
β”‚   β”œβ”€β”€ profile
β”‚   β”‚   └── page.tsx
β”‚   └── dashboard
β”‚       └── page.tsx
β”œβ”€β”€ components
β”‚   β”œβ”€β”€ GoalCard.tsx
β”‚   β”œβ”€β”€ ActivityCard.tsx
β”‚   β”œβ”€β”€ NavigationBar.tsx
β”‚   β”œβ”€β”€ UserAvatar.tsx
β”‚   β”œβ”€β”€ ProgressBar.tsx
β”‚   β”œβ”€β”€ InputField.tsx
β”‚   β”œβ”€β”€ Button.tsx
β”‚   β”œβ”€β”€ GoalForm.tsx
β”‚   β”œβ”€β”€ ActivityForm.tsx
β”‚   β”œβ”€β”€ UserProfile.tsx
β”‚   β”œβ”€β”€ UserSettings.tsx
β”‚   β”œβ”€β”€ AuthModal.tsx
β”‚   └── SocialSharing.tsx
β”œβ”€β”€ types
β”‚   β”œβ”€β”€ goal.ts
β”‚   β”œβ”€β”€ activity.ts
β”‚   β”œβ”€β”€ user.ts
β”‚   └── shared.ts
β”œβ”€β”€ utils
β”‚   β”œβ”€β”€ api.ts
β”‚   β”œβ”€β”€ auth.ts
β”‚   β”œβ”€β”€ helpers.ts
β”‚   └── constants.ts
β”œβ”€β”€ prisma
β”‚   └── schema.prisma
β”œβ”€β”€ tailwind.config.js
β”œβ”€β”€ next.config.js
β”œβ”€β”€ tsconfig.json
└── README.md

πŸ’» Installation

πŸ”§ Prerequisites

  • Node.js
  • npm
  • Docker

πŸš€ Setup Instructions

  1. Clone the repository:
    • git clone https://github.com/spectra-ai-codegen/project-1723923224852-6a6nli.git
  2. Navigate to the MVP directory:
    • cd project-1723923224852-6a6nli
  3. Install dependencies:
    • npm install

πŸ—οΈ Usage

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

  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.js or .env.

πŸ“š Examples

  • πŸ“ Example 1: Setting a new fitness goal
  • πŸ“ Example 2: Logging a workout activity
  • πŸ“ Example 3: Sharing progress on social media

🌐 Hosting

πŸš€ Deployment Instructions

  1. Install the Heroku CLI:
    • npm install -g heroku
  2. Login to Heroku:
    • heroku login
  3. Create a new Heroku app:
    • heroku create
  4. Deploy the code:
    • git push heroku main

πŸ”‘ Environment Variables

  • DATABASE_URL: PostgreSQL database connection string

πŸ“œ API Documentation

πŸ” Endpoints

  • 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.
  • GET /api/activities: Retrieves a list of user activities.
  • POST /api/activities: Logs a new activity.
  • GET /api/users: Retrieves user data.
  • POST /api/users: Creates a new user account.

πŸ”’ Authentication

Use JWT tokens for authentication.

πŸ“ Examples

  • curl -X GET http://localhost:3000/api/goals

πŸ“œ License

This MVP is licensed under the MIT License.

πŸ‘₯ 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