Giter Club home page Giter Club logo

grpc-todo-list-cli's Introduction

gRPC Todo List CLI



Your todo list as a command line application!


Test GrpcTodo.Server

Demonstration (outdated)

view demo

A simple grpc todo list on live. your todo list as CLI.

create, list, complete, uncomplete, your tasks in your terminal and more...

How to run on your machine?

  • you need to install .NET 7
  • you need to have Docker installed (latest version)

build project to generate the proto files as c# classes

dotnet build

up all docker containers

docker compose up -d

run the server to accept the connections

cd GrpcTodo.Server
dotnet run -lp https

Proto VSCode Extension help

settings.json

{
  "protoc": {
    "options": ["--proto_path=GrpcTodo.SharedKernel/Protos"]
  }
}

How to server tests?

in any of this scripts if you want to run specific class tests.

just add the class test name after the script name

Available CLI commands

Now the CLI creates some default aliases

  • logout alias to: account logout
  • login alias to: account login
  • signup alias to: account create

you can add your own aliases on config file manually

to create a new aliase go to C:\Users\<your_user>\.gl\configs

add a new alias to update your token for example:

@alias ut=account token update

your config file should be like:

config file example

now in your CLI you have this alias enabled, use:

gl ut

this alias will execute the account token update command.

to see all available commands type:

gl --help

Available commands

  • account
    • create create new account
    • login make login
    • logout make logout. signout from your account
    • token
      • update hard update your auth token. generate a new one
  • alias
    • create create new alias
    • remove remove an existing alias
    • list list all available aliases
  • task
    • create create a new task
    • complete complete a task
    • uncomplete uncomplete a task
    • list list all tasks
    • delete delete a task

if a command is green, this are implemented. if is red, are not

How to use the CLI in DEV

cd ./GrpcTodo.CLI
dotnet run <command>

grpc-todo-list-cli's People

Contributors

marcos-venicius avatar soumya-kushwaha avatar

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.