You can clone this repository and simply create any finit state machine app of your own by using the sample code provided.
Sample code is a QA console app made with Laravel + Artisan
You have to have docker
and docker-composer
installed on your system in order to run this project.
-
clone the repository
git clone git@github.com:rasadeghnasab/QA
-
cd to the repository directory
cd QA
-
up and run the project
make install
- Note: You can use
sudo make install
if it gives you any permission error
- Note: You can use
-
wait for all the services to be up. You can check them by the command below
make status
-
if all the services were up, now you can migrate tables
make migrate
-
you can run the Q&A by using these two commands. pass
--with-password
flag if you need full authentication.# login with email ./vendor/bin/sail artisan qanda:interactive # login with email and password ./vendor/bin/sail artisan qanda:interactive --with-password
- test@test.com
- password
- default behavior: only ask for email. It will create a user for your if it doesn't exist already.
vendor/bin/sail artisan qanda:interactive
- full credential required. It will ask for your email and password.
vendor/bin/sail artisan qanda:interactive --with-password