Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_PARSEABLE_URL="url"
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules/
dist/
build/
build_*
.prettierrc.js
.eslintrc.cjs
*.json
*.d.ts
vite.config.ts
29 changes: 29 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const path = require('path');

const tsconfigPath = path.join(__dirname, 'tsconfig.json');

module.exports = {
env: { browser: true, es2020: true },
parser: '@typescript-eslint/parser',
parserOptions: { ecmaVersion: 'latest', sourceType: 'module', project: [tsconfigPath] },
plugins: ['react-refresh'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
'plugin:import/typescript',
'plugin:prettier/recommended',
],
rules: {
'react-refresh/only-export-components': 'warn',
'react/react-in-jsx-scope': 0,
'react-refresh/only-export-components': 0,
'react-hooks/exhaustive-deps': 0,
},
settings: {
react: {
version: 'detect',
},
},
};
45 changes: 38 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
.vscode
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# misc
.DS_Store

# Logs
logs
!src/**/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

.env.local
.env.development.local
.env.test.local
Expand All @@ -20,3 +29,25 @@ yarn-debug.log*
yarn-error.log*
build
build.zip

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?


# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage


4 changes: 4 additions & 0 deletions .ncurc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"interactive": true,
"reject": ["/faker/"]
}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
auto-install-peers = true
strict-peer-dependencies = true
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"semi": true,
"printWidth": 120,
"tabWidth": 2,
"bracketSameLine": true,
"useTabs": true
}
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,19 @@ It ingests log data via HTTP POST calls and exposes a query API to search and an
## Getting Started

1. Clone the repository.
2. Run `npm install` to install all the dependencies.
3. Run `npm run client` to start the console.
4. Open `http://localhost:3000` in your browser.
5. You can see the console running in your browser now :)
6. For dashboard Access Enter the below credentials.
2. Create `.env.development.local` and copy the content of `.env.example` into it (Fill in the values).
3. Run `pnpm install` to install all the dependencies.
4. Run `pnpm dev` to start the console.
5. Open `http://localhost:3001` in your browser.

To test production build

1. Create `.env.test.local` and copy the content of `.env.example` into it (Fill in the values).
2. Run `pnpm build:test` to create a release build in test mode.
3. Run `pnpm start` to start the console.
4. Open `http://localhost:3002` in your browser.

You should set VITE_PARSEABLE_URL if parseable server is running on a different url.

## Live Demo

Expand Down
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
<link rel="icon" href="/favicon.ico" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Parseable Log Storage</title>

<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="/manifest.json" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading