Giter Site home page Giter Site logo

chalk's Introduction

Hello World! ๐Ÿ‘‹๐ŸŒŽ

Nice ditherd image of a snowy forrest

  • ๐ŸŒ Website: https://connorcode.com
  • ๐Ÿ”’ GPG Key: curl https://connorcode.com/key.asc | gpg --import
  • ๐Ÿ’ฌ Discord: ย sigma76

chalk's People

Contributors

connorslade avatar

Watchers

 avatar

chalk's Issues

System for sending applications actions

  • afire interface API crate
  • Add a remote controller token to each application
  • It is set to a random string every time the app starts
  • It is passed to the app through the CHALK-KEY environment variable
  • When a remote action is processed send a request to the port specified in the app config
  • Send the response back to the requester

Remote Control Message Format

{
    "verification": "...",
    "action": "...",
    "data": "..."
}

Improve logging

On...

  • API requests
  • Authentication fails
  • App crashes - starts - stops

Log Saveing

  • Log saveing
  • Make a timer (30 secs?) that saves the logs to a file.
  • Should also save on ctrlc.

Make use of API tokens

  • Global API token for use with CLI. Stored in main config.toml.
  • Default should be randomly generated.
  • Add token checks for all api endpoints
    • Global token can be used on every api
    • Scoped project tokens can only be used on the said project's apis and the ping
    • Ping
    • Logs
    • Status
    • Apps
      • Info
      • Action
  • Use token on client
  • If no token defined try reading config file for it
  • Store address โ‡’ token for future use (only if global token)

Implament Client Commands

Commands to implement on the chalk cli.

  • Version
  • Status
  • Logs
  • System Status
  • Refresh
  • Apps
    • Start
    • Stop
    • Info
    • Update
    • Reload
    • Remote

Notification system

Maybe a discord webhook or something to notify me on certen events.
Would also require converting the logging system into an event system or just sending all logs as events.

Save stoped app state on shutdown

May require saving a new 'state' file with the statuses of projects.
Then on restart the state is checked to keep stopped apps from running automatically.

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.