Skip to content

itu-fe/test-nuxt3-app

Repository files navigation

Sine Wave demo app (Nuxt 3 + ApexCharts + Pinia + TailWindCSS)

Table of Contents

  1. Installation
  2. Project structure
  3. Settings
  4. Manuals

To see the complete readme contents use the outline icon on the top right .

Installation

git clone https://github.com/itu-fe/test-nuxt3-app.git
docker load -i test-nuxt3-app.tar
docker run -p 3000:3000 test-nuxt3-app

Open test-nuxt3-app in browser (localhost:3000)

Technical info

Project structure

GET /api/sine-wave.js

This endpoint retrieves JSON data for 100 datapoints of a sine wave function.

Parameters

None

Response

{
  "data": [
    { "x": 0, "y": -0.8937377757650987 },
    { "x": 1, "y": -0.9340570596790904 },
    { "x": 2, "y": -0.9650435542109823 }
  ]
}

Settings

settings.js

SineWaveSettings = {
   refreshInterval  : 500              	 // request interval, ms
  ,display          : 'refresh'          // (refresh | any) dynamic or static graph display
  ,chart            : { /* ... */ }      // ApexChart options, see link below [1]
  }

[1] - ApexChart options

storeSettings.js

storeSettings = {
  'sineStore' : {                  // Sine wave storage settings
    'maxStoredDatasets' : 5        // Maximum number of stored datasets
    }
  };

Known issues

0 items

Manuals

Manuals URL
ApexCharts https://apexcharts.com/docs/
NUXT https://nuxt.com/docs/
TailWindCSS https://tailwindcss.com/docs/font-size
Pinia https://pinia.vuejs.org/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published