#Lifestalia API ##About This API was developed for the product Lifestalia, a platform for giving and receiving loans. The API is built using the Laravel PHP framework and includes features for managing loans, users, and payments.
##Installation
Copy code
// 1. Clone the repository and navigate to the project directory:
git clone https://github.com/Aitechma-Company/lifestalia_api
cd lifestalia_api
// 2. Install the required dependencies:
composer install
// 3. Create a new database and set the credentials in the .env file:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=lifestalia
DB_USERNAME=root
DB_PASSWORD=
// 4. Run the migrations to create the necessary tables:
php artisan migrate
// 5. Seed the database with first admin and other dummy data:
php artisan db:seed
// 6. Install Passport for OAuth2 authentication:
php artisan passport:install
// 7. Start the development server:
php artisan serve
You can now access the API at http://localhost:8000
##Note Make sure you have the required dependencies like PHP, MySQL, composer installed on your machine before running the above commands.