Giter VIP home page Giter VIP logo

herdwatch's Introduction

buid:

docker-compose -f ./docker.server/docker-compose.yml build

run:

docker-compose -f ./docker.server/docker-compose.yml up -d

server run in http://localhost:85

go to shell:

cd ./docker.server; docker-compose exec php-fpm /bin/sh; cd ..

in shell:

make migration:

cd /var/www/server/
./bin/console doctrine:migrations:migrate

test client:

cd /var/www/client
cd ./bin/console
Symfony 6.2.9 (env: dev, debug: true) #StandWithUkraine https://sf.to/ukraine
.....
Available commands:
 api
  api:group:add               create a new group
  api:group:del               delete group
  api:group:get               get group by name
  api:group:update            update group
  api:stat:groups             list groups
  api:stat:users              list of users
  api:user:add                create a new user
  api:user:del                delete user by email
  api:user:get                get user by email
  api:user:group:add          add group to user
  api:user:group:del          remove group from user
  api:user:update             update user info
....
/var/www/client $ ./bin/console api:stat:groups
{
    "success": true,
    "code": 1,
    "groups": []
}
/var/www/client $ 

Example to create new group:

/var/www/client $ ./bin/console api:group:add

Enter name:
> Test

{
  "success": true,
  "code": 1
}
/var/www/client $ ./bin/console api:stat:groups
{
  "success": true,
  "code": 1,
  "groups": [
    {
      "id": 1,
      "name": "Test",
      "users": []
    }
  ]
}
/var/www/client $ 

herdwatch's People

Contributors

vasyaxy avatar

Watchers

 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.