REST API for issuing a list of users from an external service via API
Step-by-step instructions for starting a project:
Run docker-compose:
docker-compose up
Create .env
and generate app key:
docker exec -it app cp .env.example .env
docker exec -it app php artisan key:generate
Make database migration:
docker exec -it app php artisan migrate:fresh
Get vk token and insert into .env
file:
Find out your vk id via this service.
Copy and paste vk id into VK_USER_ID
Get your vk token via this link.
Copy vk token from url and paste into VK_ACCESS_TOKEN
Clear config cache:
docker exec -it app php artisan config:clear
Run vk import console command:
docker exec -it app php artisan vk:import
API Routes:
/api/users - list of all users
/api/users/{id} - obtaining detailed information about a user by ID
This project is licensed under the MIT License