This is a simple Laravel application. It helps to import data about incomes, orders, sales, and stocks.
- PHP >= 8.0
- Composer
- MySQL (or another supported database)
- Git
-
Clone the repository
git clone https://github.com/stick231/wb-laravel-test-app.git
-
Go to the project folder
cd wb-laravel-test-app
-
Install PHP packages with Composer
composer install
-
Copy the example environment file
cp .env.example .env
-
Set up the
.env
fileOpen the
.env
file in a text editor and update the following lines with your database settings:DB_DATABASE=your_database_name DB_USERNAME=your_database_user DB_PASSWORD=your_database_password
-
Generate application key
php artisan key:generate
-
Run database migrations
php artisan migrate
To import data, run the following commands in the terminal (one at a time):
php artisan app:import-incomes
php artisan app:import-orders
php artisan app:import-sales
php artisan app:import-stocks
Each command will import the corresponding data into your database.
This project is for test purposes only.
This project is based on the following materials provided by the employer:
- GitHub repository with API reference:
https://github.com/cy322666/wb-api - Postman collection with API examples:
[https://www.postman.com/cy322666/workspace/app-api-test/overview]
Thank you for checking out this test project!