Giter Site home page Giter Site logo

luisduenas / drupal-lando-starterkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saschaeggi/drupal-lando-starterkit

1.0 0.0 0.0 3.27 MB

A Drupal Starterkit with GraphQL, GraphQL Twig, Gin Future UI, Minimal Frontend Setup with Webpack and Vanilla JS/Vue running on Lando (Docker).

PHP 36.60% JavaScript 19.99% CSS 0.51% Vue 0.74% SCSS 16.53% Gherkin 0.41% Twig 25.23%

drupal-lando-starterkit's Introduction

Drupal Lando Starterkit

A Drupal Starterkit with GraphQL, GraphQL Twig, Gin Future UI, Minimal Frontend Setup with Webpack and Vanilla JS/Vue running on Lando (Docker).

Prerequisites

Get Lando

Install Lando: https://docs.lando.dev/basics/installation.html


Installation

Clone repo

Clone the repo

git clone [email protected]:saschaeggi/drupal-lando-starterkit.git drupal-lando-starterkit && cd drupal-lando-starterkit

Let's build the app

lando start

You're ready to go

https://drupal-lando-starterkit.lndo.site/


Commands

Start containers

lando start

Stop containers

lando stop

Poweroff Lando

lando poweroff

SSH into container

lando ssh

Drush

Make sure you're in the frontend folder (cd web)

lando drush COMAMND

Composer

Make sure you're in the frontend folder (cd web)

lando composer COMMAND

Xdebug

Start Xdebug

lando xdebug-on

### Stop Xdebug

lando xdebug-off

Drupal

Frontend

https://drupal-lando-starterkit.lndo.site/

Drupal Backend Login

https://drupal-lando-starterkit.lndo.site/user

username: admin
password: drupal

GraphQL Default API

https://drupal-lando-starterkit.lndo.site/graphql

Authentication via Bearer access token.

Get a Bearer Token

curl --request POST \
  --url https://drupal-lando-starterkit.lndo.site/oauth/token \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data grant_type=password \
  --data username=api \
  --data password=drupal \
  --data client_id=104a2b89-02fc-4501-aebc-2ec7766cc84f \
  --data 'client_secret=7U9_kQ_@ozhHi!.v-!'

Frontend Theme

Run theme (compile / watch)

Install

cd web/themes/frontend/
nvm use
npm install

Run watcher

cd web/themes/frontend/
npm run dev

Compile assets

cd web/themes/frontend/
npm run prod

Scaffold components

cd web/themes/frontend/
npm run scaffold

Twig debugging

Create local settings for debugging Rename web/sites/default/default.settings.local.php to web/sites/default/settings.local.php

drupal-lando-starterkit's People

Contributors

saschaeggi avatar backflip avatar dermario avatar

Stargazers

Roman avatar

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.