Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macintoshplus/todo-list-example
Todo List : Project to demonstrate
https://github.com/macintoshplus/todo-list-example
acceptance-testing behat chromedriver demo functional-testing geckodriver mink pageobject-pattern php symfony two-factor-authentication
Last synced: about 2 months ago
JSON representation
Todo List : Project to demonstrate
- Host: GitHub
- URL: https://github.com/macintoshplus/todo-list-example
- Owner: macintoshplus
- Created: 2020-04-13T13:05:24.000Z (over 4 years ago)
- Default Branch: new_security_feature
- Last Pushed: 2023-10-05T01:39:24.000Z (about 1 year ago)
- Last Synced: 2024-05-02T00:33:12.120Z (8 months ago)
- Topics: acceptance-testing, behat, chromedriver, demo, functional-testing, geckodriver, mink, pageobject-pattern, php, symfony, two-factor-authentication
- Language: PHP
- Homepage: https://nahan.fr
- Size: 2.11 MB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Todo List : Project to demonstrate
==================================The branch [behat](https://github.com/macintoshplus/todo-list-example/tree/behat) is used to demonstrate the
usage of Behat with Symfony Page ([[Tutoriel] Test Behat sur un projet Symfony [FR]](https://nahan.fr/tutoriel-test-behat-sur-un-projet-symfony/)).The branch [symfony_510](https://github.com/macintoshplus/todo-list-example/tree/symfony_510) is used to demonstrate the new implementation of the Symfony Security component ([Double authentification et Symfony 5.1 [FR]](https://nahan.fr/double-authentification-et-symfony-5-1/)).
# Requirements
* Symfony client
* Composer
* PHP 7.4 (ext: sqlite3 + Symfony requirement)
* Yarn 1.21# Install
Clone this repository or download archive
Open a terminal and run their following commands:
```shell script
$ composer install
$ yarn install
$ yarn encore dev
```# Initialize database
On the first install, run this command to make a new database: `bin/console doctrine:database:create`
Run all migration to initialize the database (the database is already configured to use SQLite)
> Note: if you have a database from the v1.0.0 run this command: `bin/console doctrine:migrations:sync-metadata-storage`.
```shell script
$ bin/console doctrine:migration:migrate
```Open the database with your favorite SQLite browser and add a row into the `user` table.
To define the password, use this command to encode it : `bin/console security:encode-password`
# Use in development environment
Run this command in a console (caution, the console will be busy):
```shell script
$ symfony serve
```Open the link in your favorite web browser.
# Login
The login uses a two-factor authentication. When your browser is redirected to code form (after username/password form) read the dump value in the Symfony debug bar.
This code is the two-factor code.