nichoth / try-logux

Trying logux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

try logux

Trying logux


develop

Copy the .env.example file to src/server/.env

cp ./.env.example ./src/server/.env

Start the logux server in one terminal:

npm run start:logux

In a different terminal, start the frontend server:

npm run start:vite

architecture

See this article for more details about application architecture.

We create application state and logic in the file ./src/state.ts. This exports static functions, creates a state object, sets up URL routing, and subscribes to logux.

In the view code, you would call the functions exposed in state with a state instance in response to DOM events.

About

Trying logux


Languages

Language:TypeScript 81.1%Language:JavaScript 12.8%Language:HTML 3.7%Language:CSS 2.3%