Git Product home page Git Product logo

confession-wall's Introduction

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 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
  2. GraphQL by night — Implementing GraphQL with Laravel/Lumen
  3. GraphQL by night — Implementing GraphQL Subscription with Laravel/Lumen in nuwave/lighthouse using Pusher & Echo driver

confession-wall's People

Contributors

ssi-anik avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ag-php

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.