Lendha is a web app built with Laravel and React. The Laravel routing is API based.
The following items are required before installing the Lendha app:
- PHP
- BCMath PHP Extension
- Ctype PHP Extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Composer
- MySQL
- npm
- Create a Database (for the purpose of this doc I will call it
lendha_db
) - Assign a user to the database (let us use
lendha_user
andlendha_password
) - Clone the Lendha app from github
- Navigate to the location of the app on your PC
- Run
composer install
to install laravel dependencies - Create a .env file
- Copy the contents of the .env.example file and paste in the just created .env file
- Modify the
DB_DATABASE
,DB_USERNAME
,DB_PASSWORD
to suit the values created in 1 and 2 above - Run
php artisan migrate --seed
to create and populate the necessary database tables. - Run
php artisan passport:install
- Run
npm install && npm run dev
to install npm dependencies and compile the development code. - Run
php artisan serve
to run the code on your browser - Navigate to
http://127.0.0.1:8000
(or whichever url is provided after serving) to view your code.
You can see Lendha in action here