Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ismatbabirli/laravel-graphql-example

Example Laravel and QraphQL API structure
https://github.com/ismatbabirli/laravel-graphql-example

Last synced: about 22 hours ago
JSON representation

Example Laravel and QraphQL API structure

Awesome Lists containing this project

README

        

# Laravel-GraphQL-api

API for a microblogging platform

## Getting Started

Clone the project repository by running the command below if you use SSH

```bash
[email protected]:ismatBabirli/Laravel-GraphQL-Example.git
```

If you use https, use this instead

```bash
https://github.com/ismatBabirli/Laravel-GraphQL-Example.git
```

After cloning,run:

```bash
composer install
```

Duplicate `.env.example` and rename it `.env`

Then run:

```bash
php artisan key:generate
```

### Prerequisites

Be sure to fill in your database details in your `.env` file before running the migrations:

```bash
php artisan migrate
```

And finally, start the application:

```bash
php artisan serve
```

and visit [http://localhost:8000/graphiql](http://localhost:8000/graphiql) to see the application in action.

## Built With

* [Laravel](https://laravel.com) - The PHP Framework For Web Artisans
* [GraphQL](https://graphql.org) - A query language for your API

## Acknowledgments

* [Laravel-GraphQL-Example](https://github.com/ismatBabirli/Laravel-GraphQL-Example)