-
-
Notifications
You must be signed in to change notification settings - Fork 5
Address book tutorial
The address book tutorial is where the project starts to feel more like a production application. It uses a real database, spans multiple pages, and benefits from a clearer application architecture.
The application will include:
- a multi-page structure
- shared layout
- database-driven pages
- better layering between page logic and application classes
- stronger testing and deployment concerns
It also adds a lightweight idea of user ownership so different people can keep their own address books.
A sensible order is:
- build the index page in HTML first
- add the page for a single record
- add create and edit flows
- move data access and behaviour into application classes
- connect the database
- associate records with a simple username identity
By this stage the project starts to use most of the ideas in the earlier chapters together.
Once the core address book works, natural next steps include stricter validation, stronger security, a better authentication system, and fuller test coverage.
If the simple username identifier becomes too limiting, it can later be replaced by a proper authentication mechanism rather than being baked into every part of the app from the start.
When starting a new application with gt create, we can start with any of these tutorials or pick from other blueprints.
- File-based routing
- Page views
- Page logic
- Dynamic URIs
- Headers and footers
- Custom HTML components
- Page partials
- Binding data to the DOM
- DOM manipulation
- Hello You tutorial
- Todo list tutorial
- Address book tutorial WIP
- Blueprints
- Application architecture
- Coding styleguide WIP
- PHP environment setup WIP
- Web servers WIP
- Background cron tasks
- Database setup WIP
- Client-side compilation WIP
- Testing WebEngine applications WIP
- Production checklist WIP
- Security WIP