janmikolas/webapp-nette

Basic application for working with forms and datagrid by @janmikolas, used Contributte code by @f3l1x.


README

Create a basic application for working with forms and datagrid on Contributte.

Focused on:

  • PHP >= 8.0, <8.2
  • form / action (create, edit, delete)
  • datagrid (pagination, limit, sorting)
  • materializecss template
  • merge & bug fix

Used:

Demo

https://nette.janmikolas.cz/

login: test@test.cz password: test

Install

  1. To install latest version of janmikolas/webapp-nette use Composer.

    composer create-project -s dev janmikolas/webapp-nette acme
    
  2. Modify config/local.neon and set host to database

    Default configuration should look like this:

    # Host Config
    parameters:
        # Database
        database:
     	   host: localhost
     	   dbname: jm_webapp
     	   user: webapp
     	   password: webapp
  3. Modify config/app/parameters.neon and set driver to database

    Default configuration should look like this:

    # Database
    database:
        driver: mysqli
        port: 3307
  4. Import db/db.sql to database

  5. Clean cache dir var/tmp/cache (not required)

  6. Drop tables (not required)

    php bin/console orm:schema-tool:drop  --dump-sql --force
    
  7. Create tables (not required)

    php bin/console orm:schema-tool:update  --dump-sql --force
    
  8. Insert fixtures data (not required)

    php bin/console doctrine:fixtures:load  --append
    
  9. Install assets

    # (if exist node_modules rmdir node_modules /q /s) && npm install
    npm install
    
  10. Build assets

    npm run start
    

Screenshots