https://github.com/ssi-anik/confession-wall
The implementation of APIs & GraphQL in Lumen. Check the documentation. Read the readme files for the list of articles for GraphQL implementation.
https://github.com/ssi-anik/confession-wall
graphql graphql-mutations graphql-query graphql-server graphql-subscriptions laravel lumen
Last synced: about 1 year ago
JSON representation
The implementation of APIs & GraphQL in Lumen. Check the documentation. Read the readme files for the list of articles for GraphQL implementation.
- Host: GitHub
- URL: https://github.com/ssi-anik/confession-wall
- Owner: ssi-anik
- Created: 2021-01-02T12:10:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-14T03:15:22.000Z (over 5 years ago)
- Last Synced: 2025-04-06T21:26:12.762Z (about 1 year ago)
- Topics: graphql, graphql-mutations, graphql-query, graphql-server, graphql-subscriptions, laravel, lumen
- Language: PHP
- Homepage: https://bit.ly/3cYD15K
- Size: 869 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Confession wall
An implementation of APIs and GraphQL with Lumen for anonymous confession. Not a serious project. Check the articles if you're here to implement the GraphQL with Laravel/Lumen.
## Version
This repository contains Lumen `8.x` and Lighthouse `5.2.x`
## Dependencies, requirements and build tools
This project comes with `docker` & `docker-compose`. But to minimize the boot up time when you try `docker-compose up -d --build` the local files are mounted to application & worker containers and **NOT COPIED TO CONTAINERS**.
Thus, it's recommended to use PHP & composer locally. Resolve your project dependency before you run your application using `composer install`.
This project contains,
- `nginx` for web server.
- `postgres` for database.
- `redis` for cache.
- `beanstalkd` for queue driver.
- `beanstalk-console` as beanstalk's admin tool.
## How to use?
- Clone the repository.
- `cp docker-compose.yml.example docker-compose.yml`.
- Make the required changes to your `docker-compose.yml`.
- `cp .env.example .env`.
- Make the required changes to your `.env`.
- `docker-compose up -d --build` to build your containers.
- Run `php artisan key:generate` to generate application key.
- Loading `http://127.0.0.1:{NGINX_PORT}` in your browser will return a json response.
- If you don't have `composer` locally, then `exec`-ing to php container after containers are up and install the dependencies will work. Just restart the containers.
- If you're changing the environment variables, make sure to change them other places and run commands if required.
- Run `docker-compose exec php php artisan migrate --seed` to migrate and seed the database. Check the seeded username and password.
## Postman Collection
[Postman collection](https://www.getpostman.com/collections/85c1be3c2301faa36c81) for the APIs. Please change the environment variables.
## Queries
GraphQL queries are listed in the `queries.md` file.
## GraphQL Related Articles
1. [GraphQL by night — Understanding GraphQL Basics](https://bit.ly/2LxF7xX)
2. [GraphQL by night — Implementing GraphQL with Laravel/Lumen](https://bit.ly/3cYD15K)
3. [GraphQL by night — Implementing GraphQL Subscription with Laravel/Lumen](https://bit.ly/3jFm1mo) in [nuwave/lighthouse](https://github.com/nuwave/lighthouse) using Pusher & Echo driver