Skip to content

vinhlee95/stonkie_client

Repository files navigation

Stonkie client

This is a Next.js project that power Stonkie https://stonkie.vercel.app/. It's a modern, server-side rendered application using the latest web technologies. Stonkie screenshot

Tech Stack

This project is built with a modern and robust technology stack:

  • Framework: Next.js 15 with React 19 and TypeScript. It utilizes the App Router for file-based routing and Server-Side Rendering (SSR).
  • Styling: Tailwind CSS for a utility-first CSS workflow.
  • UI Components:
    • Shadcn UI: A collection of accessible and customizable components.
    • Radix UI: For building high-quality, accessible design systems and web apps.
    • Lucide Icons: A beautiful and consistent icon set.
  • Charting: Chart.js with react-chartjs-2 for data visualization.
  • Data Fetching & State Management: TanStack React Query for managing server state.
  • Code Quality:
    • ESLint: For identifying and reporting on patterns in JavaScript.
    • Husky & lint-staged: For running linters on staged files before committing.

Getting Started

To get the next.js development server running, follow these steps:

  1. Install dependencies:

    npm install
  2. Run the development server:

    npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

Get the backend up and running

Since this is the front-end part of Stonkie, you'd need to run Stonkie backend running. Clone the repository https://github.com/vinhlee95/stonkie_backend and follow the instruction there.

Development Guidelines

To maintain code quality and consistency, please adhere to the following guidelines when developing new features:

  • Component-Based Architecture: Build new UI elements as reusable React components and place them in the app/components/ directory.
  • Styling: Use Tailwind CSS for all styling. Avoid inline styles or separate CSS files.
  • Routing: Create new routes by adding new folders and page.tsx files within the app/ directory.
  • Data Fetching: Use TanStack React Query for all API interactions.
  • Code Quality: Run npm run lint to check for linting errors before committing your changes. The pre-commit hook will also run this command automatically.
  • Icons: Use icons from the Lucide React library.

Learn More

To learn more about the technologies used in this project, refer to the following resources:

Production deployment

All commits to main get deployed directly to production and will be live in https://stonkie.vercel.app/ within 1 minute or 2 🚢

About

SSR version of stonkie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages