bagusindrayana/ews-concept-new
概要
EWS design concept based on neon genesis evangelion theme
その他のプロジェクト計測したスター増加
- 24時間
- 0
- 7日間
- -1
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルEWS Concept New
This project is a SvelteKit-based front-end application for an Earthquake Early Warning System (EWS).
Prerequisites
Before running this project, ensure you have installed:
- Node.js (version 18 or newer is recommended)
- pnpm (this project uses
pnpmas the package manager, as indicated bypnpm-lock.yaml)
Setup and Running the Project
Open the project directory: Make sure you are inside the project folder:
cd ews-concept-newInstall dependencies: Run the following command to install all required packages:
pnpm install(Note: You can also use
npm installif you don't havepnpminstalled)Environment Configuration: Copy the
.env.exampleconfiguration file to.env.For Windows (Command Prompt/PowerShell):
copy .env.example .env or .dev.varsFor Mac/Linux:
cp .env.example .envOpen the newly created
.envfile and adjust the WebSocket or Socket Server URLs if necessary:# WebSocket Server URL for real-time seismic data # https://github.com/bagusindrayana/seedlink-websocket PUBLIC_WEBSOCKET_URL=ws://localhost:8080 # Socket Server for earthquake/tsunami data # https://github.com/bagusindrayana/ews-socket PUBLIC_SOCKET_DATA_URL=ws://localhost:8081Run the Development Server: Start the local development server with the command:
pnpm run devOr start it and automatically open a new tab in your browser:
pnpm run dev --openBy default, the application will run at
http://localhost:5173.
Building for Production
To create a production version of your app (a compiled version ready for deployment):
pnpm run build
You can preview the production build by running:
pnpm run preview
Data Sources
This application relies on two distinct external data sources for real-time operation and alert notifications. These sources are configured via the .env file.
1. Seedlink WebSocket (Real-time Seismic Data)
- Repository: seedlink-websocket
- Purpose: Provides streaming, real-time seismic waveform data (e.g., MiniSEED format).
- Usage: Used to render live seismograms and waveform charts on the front-end dashboard.
- Environment Variable:
PUBLIC_WEBSOCKET_URL(default:ws://localhost:8080)
2. EWS Socket (Earthquake & Tsunami Alerts)
- Repository: ews-socket
- Purpose: A WebSocket server that broadcasts structured alert data regarding recent earthquakes, parameters (magnitude, depth, location), and potential tsunami warnings.
- Usage: Triggers the UI popups, updates the recent earthquake list, and displays alert banners.
- Environment Variable:
PUBLIC_SOCKET_DATA_URL(default:ws://localhost:8081)
Support Me!
関連プロジェクトを探す
読み込み中…