Giter Club home page Giter Club logo

bs3stat's Introduction

bs3stat

CircleCI License Go Report Card

bs3stat

Is a small dashboard service in go and vue, to collect and visualize your backups made with backup

🚧 It is still in early alpha and not production ready⚠

Features

  • Cluster statistics by model name
  • Bar height based on backup duration
  • Bar color based on backup status
  • TODO: S3 integration with buckets and bucket cost
  • TODO: Auth for api endpoints
  • TODO: Simple login for dashboard
  • TODO: Crud operations in frontend
  • TODO: Tooltips with more info
  • TODO: Docker container

bs3stat

Commands

Run server:

go run main.go

Run server with custom port:

go run main.go --port=3000

Run with migrations:

go run main.go --migrate

Run with db seeds:

go run main.go --seed

Migration

Create migration

migrate --url sqlite3://storage.db --path ./db/migrations create add_example_field

Migrate

migrate --url sqlite3://storage.db --path ./db/migrations up # or down

Backup Notifier Settings

Accepted post parameters are

{
	"name":"model_name",
	"title": "Model Name",
	"status": "Backup::Success",
	"duration": "00:00:24"

}

bs3stat's People

Contributors

apertureless avatar tpmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bs3stat's Issues

Ping Checker

Cool Feature would be to have a ping checker, that checks the intervalls between backup post requests. And if the timeframe is exceeded, sends a notification.

If the backup server is down f.e.

Interesting package https://github.com/jasonlvhit/gocron

Update Project struct

πŸ“‚ Project Model

Update fields to a final state!

Current fields:

  • title
  • name
  • (created_at)
  • (updated_at)

❓ Where is the difference between title and name?


Needed fields:

  • Backup status (succesfull / warning / failure)
  • Start time
  • End time
  • Duration
  • Logs (update logs for additional information)

Add Dashboard Login

To propper secure the app, we need to add a login for the dashboard data to access.

Notifications

Do we need notifications?
Browser Notifications? In Addition to backuppers notification system.

Maybe relevant for #4 ?

Change PUT to POST

Backupper sends HTTP POST requests and not PUT request.

  • Change Handler to POST
  • Change method names to POST

πŸ“ž API Endpoint implementation

πŸ“ž API Endpoints

  • GET /projects
  • POST /projects
  • GET /projects/:id
  • PUT /projects/:id
  • DELETE /projects/:id

GetProjectIndex

GET /projects

Returns all projects

AddProject

POST /projects

Adds new project to the database

GetProject

GET /projects/:id

Returns a specific project

UpdateProject

PUT /projects/:id

Update data of a project

DeleteProject

DELETE /projects/:id

Deletes a project

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.