MeetupApis is nothing but a set of APIs used to list, create and update RSVPs of meetup participants
-
Create ".env" file in the root with below content. Replace APP_KEY,Admin creds and db creds.
APP_NAME=Lumen
APP_ENV=local
APP_KEY=randomappkey
APP_DEBUG=false
APP_URL=http://localhost
APP_TIMEZONE=UTC
LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
ADMIN_USERNAME=admin
ADMIN_PASSWORD=randompass
-
Run "php artisan migrate" in root to create db schema
-
Run "php -S localhost:8000 -t public" in root to start the server
-
Check below mentioned APIS with sample data
a) GET http://localhost:8000/api/v1/participants
b) POST http://localhost:8000/api/v1/participants
{"name":"Aplha","age":29,"dob":"1990-01-01","profession":"student","locality":"red sea","guests":2,"address":"mars"}c) PUT http://localhost:8000/api/v1/participants/{id}
{"name":"Aplha 2","age":29,"dob":"1990-01-01","profession":"employed","locality":"red sea lake","guests":1,"address":"saturn"} -
Check participant Listing in admin page using below url(Use admin creds mentioned in .env)