Skip to content

rohit3nov/MeetupApis

Repository files navigation

MeetupApis

MeetupApis is nothing but a set of APIs used to list, create and update RSVPs of meetup participants

Follow below steps after cloning the repo

  1. 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

  2. Run "php artisan migrate" in root to create db schema

  3. Run "php -S localhost:8000 -t public" in root to start the server

  4. 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"}
    
  5. Check participant Listing in admin page using below url(Use admin creds mentioned in .env)

    http://localhost:8000/admin

About

MeetupApis is nothing but a set of API used to list, create and update RSVPs of meetup participants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors