This challenge will probe why you should hire me =)
Below are the instructions to install and run the project...
Make sure you have already installed git, composer, node >= 18.19 and php >= 8.2 (with sqlite support)
Open a terminal console and run
git clone https://github.com/mcanepa/zenquotes
Then enter directory
cd zenquotes
Once inside directory run:
composer install
At root level, there is a file named .env.example
. Duplicate that file as .env
Now, generate an application key
php artisan key:generate
Run
php artisan migrate
It will prompt you to create the database, answer YES
Now edit .env
file and change
CACHE_DRIVER=file
to
CACHE_DRIVER=database
And we are ready to seed the database with some data!!
php artisan migrate:fresh --seed
We are closer to see the app!! just a couple commands...
Run
npm install
and then
npm run build
And yes, we finally serve the project!!
php artisan serve
And go to the browser at
http://127.0.0.1:8000
And that's it!!
You can register as a new user and then go to http://127.0.0.1:8000/today
to see an inspirational quote!!!
You could test the app by running
php artisan test --testSuite=Unit
P.S.: More tests coming soon!