Simple project using angular 15 and Lumen 9 with php 8.0.
[Lumen] PHP >= 8.0, OpenSSL PHP Extension, PDO PHP Extension, Mbstring PHP Extension.
[Angular] Node.js, npm package manager
- Describe any prerequisites, libraries, OS version, etc., needed before installing program.
- ex. Windows 10
- After cloning, there will be two folders APP (Angular app) and SERVER (Lumen API).
- To start the app (angular) application, you enter the folder and run
npm install
(to install all the project's node dependencies). - After all dependencies are installed, run
npm start
. Your application should run at this addresshttp://localhost:4200
- To start the Lumen application, you need to enter the server folder and run
composer install
(to install the project dependencies). - After all dependencies are installed, change file
.env.example
to.env
and configure the default settings. You should also generate an APP_KEY and JWT_SECRET. - Inside the server folder, run
php artisan migrate
to migrate and create the tables in the database. - You should also run
php artisan db:seed
to create a default user in the database (for testing purposes) - note that some tests can only run one, because of the changes in the user infos. - Run the server using
php -S localhost:8000 -t public
.
Notes:
- To run tests, on command line hit:
vendor/bin/phpunit
to run all testsvendor/bin/phpunit --filter=UserForgotPasswordTest
to run a test class, you can find the classes attests
folder in the project`s root folder.
Contributors names and contact info
Danilo Carvalho dscarvalho.com