vikas-ukani / Laravel-with-GraphQL

A Laravel 8 Project Implement with GraphQL With Sanctum APIs Authentications Which utilized in Any Frontend or Any Mobile Application Programs.
MIT License
4 stars 2 forks source link
graphql graphql-api hacktobefest hacktoberfest-accepted hacktoberfest-accepted2021 hacktoberfest2021 laravel-framework sanctum

Build Status Total Downloads Latest Stable Version License

Installation

  1. Clone the repository

    git clone https://github.com/vikas-ukani/Laravel8-With-GraphQL-APIs.git
  2. Run composer install to install composer packages. composer i

  3. Create your .env file by copying the example provided in the repository

    cp .env.example .env
  4. Run php artisan key:generate to generate and set an application key to the .env. file.

  5. Run php artisan migrate to run the migrations to the database.

Running with Docker 🐋

  1. Clone the repository
    git clone https://github.com/vikas-ukani/Laravel8-With-GraphQL-APIs.git
  2. Build the containers
    docker-compose up -d
  3. Create your .env file by copying the example provided in the repository and create a laravel.log file into the container and set permissions
    docker-compose exec php-lwg cp .env.example .env
    docker-compose exec php-lwg touch storage/laravel.log   
    docker-compose exec php-lwg chown -R www-data:www-data /var/www/app/storage 
  4. Finally create a valid artisan key
    docker-compose exec php-lwg php artisan key:generate

    Now you can migrations, seeders or any command with the containers.

Little About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Contributing

Contributions, Developer Discussions, and Any Valuable Feedback are most welcome. Make your CONTRIBUTING.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.