GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - GPFAFF/tradetrkr

BranchesTags
Open more actions menu

Latest commit

 

History

502 Commits
502 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
drizzle
drizzle
 
 
e2e
e2e
 
 
migrations
migrations
 
 
public
public
 
 
scripts
scripts
 
 
src
src
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
QA-BUG-REPORT.md
QA-BUG-REPORT.md
 
 
README.md
README.md
 
 
drizzle.config.ts
drizzle.config.ts
 
 
eslint.config.mjs
eslint.config.mjs
 
 
global.d.ts
global.d.ts
 
 
next-env.d.ts
next-env.d.ts
 
 
next.config.js
next.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
postcss.config.js
postcss.config.js
 
 
tailwind.config.ts
tailwind.config.ts
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.tsbuildinfo
tsconfig.tsbuildinfo
 
 
tweets.md
tweets.md
 
 
twitter-market-skill.md
twitter-market-skill.md
 
 
vercel.json
vercel.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

tradeTrkr

A journal-first trading application. Journal first. Trades second.

Features

  • Pre-Market Check-In: Daily mindset assessment, sleep quality, market bias
  • Emotion Tracking: Quick emotion capture throughout the trading day
  • Trade Log: Full CRUD with 16-field trade logging
  • Weekly Review: Structured reflection with setup analysis
  • Analytics: Win rate, profit factor, setup performance

Tech Stack

  • Framework: Next.js 14 (App Router)
  • Database: Neon (PostgreSQL) + Drizzle ORM
  • Auth: JWT (jose) + bcryptjs
  • Styling: Tailwind CSS
  • Icons: Lucide React

Getting Started

  1. Clone and install:

    npm install
  2. Configure environment:

    cp .env.example .env

    Edit .env:

    • DATABASE_URL: Your Neon connection string
    • JWT_SECRET: Generate with openssl rand -base64 32
  3. Push database schema:

    npm run db:push
  4. Run development server:

    npm run dev
  5. Open http://localhost:3000

Project Structure

src/
├── app/
│   ├── (auth)/           # Login, Register pages
│   ├── (dashboard)/      # Journal, Trades, Review, Analytics
│   └── api/              # REST API routes
├── components/
│   ├── forms/            # PreMarketCheckin, TradeForm, etc.
│   ├── layout/           # Sidebar
│   └── ui/               # DailyStats, TradeList
├── db/
│   ├── schema.ts         # Drizzle schema
│   └── index.ts          # Neon connection
├── hooks/                # useAuth, useTrades, useCheckins, useEmotions
├── lib/
│   ├── auth.ts           # JWT, sessions, password hashing
│   ├── calculations.ts   # P&L, stats
│   └── validations.ts    # Zod schemas
└── types/                # TypeScript types

API Endpoints

Method Endpoint Description
POST /api/auth/register Register new user
POST /api/auth/login Login
POST /api/auth/logout Logout
GET /api/auth/me Get current user
GET/POST /api/trades List/Create trades
GET/PATCH/DELETE /api/trades/[id] Single trade operations
GET/POST /api/checkins Daily check-ins (upsert)
GET/POST /api/emotions Emotion captures
GET/POST /api/entries Journal entries
GET/POST /api/reviews Weekly reviews (upsert)

Database Schema

  • users: id, email, name, passwordHash
  • trades: 16 fields including ticker, side, prices, P&L, setup, grade, lesson
  • daily_checkins: mindset score, sleep, bias, focus
  • emotion_captures: timestamp, emotions array, note
  • journal_entries: date, type, content, emotion tags
  • weekly_reviews: best/worst setup, errors, rules, reflection

Scripts

npm run dev          # Start dev server
npm run build        # Production build
npm run db:push      # Push schema to database
npm run db:studio    # Open Drizzle Studio

About

tradesync-mauve.vercel.app

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.