-
To run project follow these steps please:
- composer install
- cp .env.example .env
- php artisan key:generate
- ./vendor/bin/sail build
- ./vendor/bin/sail up
- ./vendor/bin/sail artisan queue:work (on the server, we must run the supervisor)
- ./vendor/bin/sail artisan command:read_provider_files_data //run command to read and cache json files
-
To review task configurations review (config/data_providers.php file)
-
To run tests ./vendor/bin/sail artisan test
-
To test users api hit url (/api/v1/users) with different filters
-
If we need to add new filters we can modify in (app/Services/SearchService.php file) and update (config/data_providers.php file)
-
To working on new json file, add it in (storage/data_files/) and update (config/data_providers.php file)
-
There is another appropriate to handle this case by using mongodb or mysql (json data type) and elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
hobby10/read_search_json_files
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published