chunkangwong / 230928-server-state-mgmt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

20230928 - Server State Management

This is a project used to demonstrate the two approaches of server state management. You can checkout the branches in numerical order to see the progression of the project. Branch 1-basic-usestate is the starting point and showcasing server state management with useState. Branch 5-usequery showcases minimal server state management with @tanstack/react-query library.

Getting Started

  1. The server requires bun runtime. Check out the bun website for installation instructions.

  2. Start the server

    cd server
    npm install
    npm start
  3. Start the client

    cd client
    npm install
    npm run dev

About


Languages

Language:TypeScript 73.2%Language:CSS 18.6%Language:JavaScript 4.5%Language:HTML 3.8%