Skip to content

GUI for teos-cli. Developed under Summer of Bitcoin 2023, Organization - Eye of Satoshi

Notifications You must be signed in to change notification settings

optimm/teosd-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teosd GUI

Welcome to teosd-gui (Graphical User Interface) designed to complement the existing teos-cli (Command-Line Interface) functionality.

While the CLI provides powerful command-based operations, Admins were faced with the task of manually interpreting the results and working with text-based outputs, making the data analysis process cumbersome and time-consuming.

To bridge this gap and enhance the user experience this GUI is developed

Dependencies

Installation

Project Directory

  • Install dependencies : run npm run install:all to install all the dependencies for backend, frontend and the project directory.

  • You can also find the scripts for separate installations in the package.json file in the root directory

Backend

  • create a .env file in the backend folder and copy content from .env.example

Frontend

  • create a .env file in the env directory in frontend folder and copy content from .env.example

Running

  • Start the project with command npm start in the root directory
  • To run only backend use npm run start:backend
  • To run only frontend use npm run start:frontend

Backend

  • The server will start at Port 5000 , if u want to change the port change in the env file in the backend folder

Frontend

  • The server will start at Port 3000 , if you want to change the port change in the vite.config.ts file in the frontend folder

Testing

  • The unit tests have been completed and to run them npm run test:unit in the backend folder
  • The E2E tests have been completed and to run them npm run test:e2e in the backend folder

Endpoints on the backend

Base url = http://localhost:5000/api/v1/cli , change the port number if required

  • GET /tower-info - Will get the info about the tower

  • GET /users - Will get all registered users

  • GET /get-user/:public_key - Will get the info of the user with user public key

  • GET /appointments - Will get all the appointments in the tower

  • GET /appointments/:locator - Will get the appointments with the given locator

  • GET /stop-tower - Will shut down the tower

Releases

No releases published

Packages

No packages published

Languages