noud / gripp_client_symfony
Gripp client Symfony
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 0
Forks: 1
Open Issues: 21
Type:project
Requires
- php: ^7.1.3
- ext-ctype: *
- ext-iconv: *
- api-platform/api-pack: ^1.2
- doctrine/annotations: ^1.10
- doctrine/doctrine-cache-bundle: ^1.4
- endroid/qr-code-bundle: ^3.4
- jeroendesloovere/vcard-bundle: ^1.2
- kevinpapst/adminlte-bundle: ^3.2
- lexik/jwt-authentication-bundle: ^2.6
- nelmio/cors-bundle: ^2.0
- noud/gripp_api: ^3.0
- psr/simple-cache: ^1.0
- scheb/two-factor-bundle: ^4.14
- sensio/framework-extra-bundle: ^5.5
- sensiolabs/security-checker: ^6.0
- sonata-project/admin-bundle: ^3.73.0
- sonata-project/doctrine-orm-admin-bundle: ^3.21.0
- sonata-project/exporter: ^2.3
- sonata-project/formatter-bundle: ^4.2
- stof/doctrine-extensions-bundle: ^1.4
- symfony/apache-pack: ^1.0
- symfony/cache: ^4.4
- symfony/console: ^4.4
- symfony/dotenv: ^4.4
- symfony/flex: ^1.9
- symfony/form: ^4.4
- symfony/framework-bundle: ^4.4
- symfony/orm-pack: ^1.0
- symfony/security-bundle: ^4.4
- symfony/serializer-pack: *
- symfony/translation: ^4.4
- symfony/twig-bundle: ^4.4
- symfony/validator: ^4.4
- symfony/webpack-encore-bundle: ^1.7
- symfony/yaml: ^4.4
- timiki/rpc-server-bundle: ^4.1
- twig/extra-bundle: ^3.0
- webonyx/graphql-php: ^0.13
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- phpmd/phpmd: ^2.6
- phpstan/phpstan-doctrine: ^0.11.2
- phpstan/phpstan-phpunit: ^0.11.0
- phpstan/phpstan-symfony: ^0.11.3
- symfony/debug: ^4.4
- symfony/debug-pack: *
- symfony/maker-bundle: ^1.2
- symfony/profiler-pack: *
- symfony/test-pack: *
Conflicts
- dev-master
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/moment-2.29.4
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/minimist-1.2.6
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/composer/twig/twig-2.14.11
- dev-dependabot/npm_and_yarn/object-path-0.11.8
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/ws-6.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/composer/lexik/jwt-authentication-bundle-2.10.7
- dev-dependabot/composer/symfony/security-core-4.4.23
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/vis-timeline-7.4.4
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/node-notifier-8.0.1
- dev-sso
This package is auto-updated.
Last update: 2024-10-29 05:34:39 UTC
README
Architecture
Use
This is a Symfony client application that does work with
Gripp there Gripp API v3
and demonstrate Gripp API use.
The application is highly independent of the Entities used and a good example of writing generic code and API-First development to facilitate a Rapid-application development (RAD) process.
API front ends
The application consumes the Gripp API as client but has various API server interfaces itself as well:
- GraphQL with it's own GraphiQL in-browser IDE with generated API documentation
- Gatsby React static Progressive Web App (PWA), mobile app
- RESTful
- Swagger OpenAPI with generated API documentation
- Hydra and JSON-LD
- React Admin
- React Next Express front end
- React Redux Progressive Web App (PWA), mobile app
- Vue Single-page application (SPA), web application or web site
- JSON:API
- HAL
- JSON
- XML
- YAML
- CSV
- HTML
- JSON-RPC
export
The web application is able to export it's data to your desktop:
- CSV
- vCard as an extended(*) Writer
- JSON
- Microsoft Excel
- XML
*) The extended Writer is part of this project and still Proof of concept (PoC).
Security
The application uses various security measures:
- Security at GitHub
- Symfony Security Monitoring
- Structured Query Language (SQL) injection protection
- Cross-site request forgery (CSRF) protection
- bcrypt password hashing
- Two-factor authentication (2FA) using Google Authenticator App
- Bearer Authentication for JSON-RPC API server
- JWT Authentication for RESTful API server
- Use Cross-Origin Resource Sharing (CORS) headers for RESTful API server
Provisioning
Add this local hostname to your DNS.:
127.0.0.1 gripp.localhost
Start Docker. Provision the application with PHP Composer and JavaScript Node.js NPM packages.:
bin/docker_start.sh bin/provision.sh
Generating
We generate large part of the application:
- JSON to JSON Table Schema using PHP
- JSON Table Schema to Database Schema using tableschema-sql-js
- Generate Models with an extended(*) Doctrine Object Relational Mapper (ORM) ImportMapping Command
- Generate Views with an extended(*) SONATA PROJECTs AdminMaker Command using the Symfony MakerBundle
*) The extended code generators are part of this project and still Proof of concept (PoC).
The first 2 steps are already done, being outside this project scope. You have to perform the last 2 steps, import the Database Schema and generate Entities and Views, here is how:
Import the database schema and relations.:
mysql -u root -p db_name< db/schema.sql mysql -u root -p db_name< db/relations.sql
Generate the entities and admin webpages. Migrate and load example data:
bin/generate.sh
bin/console doctrine:migrations:migrate
mysql -u root -p db_name< db/data.sql
Tests
First start and go into your Docker workspace:
bin/docker_workspace.sh
In there run:
bin/phpunit
Usage
Browse to the login screen:
/opt/google/chrome/chrome http://gripp.localhost/sonata
You will be prompted for your credentials:
The username demo and password demo will do. (The inactive username nodemo and password nodemo will not be allowed to login.) If you succeed to login, you can navigate to your login credentials in the upper right corner pull-down:
As you see in the upper right messages and tasks navigation items and tasks pull-down the application uses the AdminLTE 2 Bootstrap 3 template.
The dashboard contains the vis.js Timeline, for now only with, entries of the messages and tasks:
Developing
Feel free to contribute.
Contributions made
Using existing code as much as possible, some projects got an accepted Pull Request:
- AdminLTE Bundle for Symfony 4 * Dutch translation added
- tableschema-sql-js * Constraints required, enum added and Field type date, datetime and time added
Tools
Created with Eclipse PDT Extension group Symfony framework plugin
(Eclipse Marketplace)
Eclipse is free open-source project that grows with your contributions.