Coder Social home page Coder Social logo

druxt-sandbox-next's Introduction

Druxt and Druxt-site for Wordpress developers

A druxt quickstart site with DDEV, (ejected from gitpod because reasons).

The original documentation and license is preserved below

Original Druxt.js MIT license →
Original Quickstart Druxt Site repo →
Local Druxt.js license →


Table of Contents

💧 Background

I am familiar with Nuxt, but I am not a Drupal developer. My background is with Wordpress, so learning Druxt for me comes with an additional learning curve. This repo is for my own self-directed learning.

My aim is to use this project to inform my approach in my work and where possible help to improve Druxt documentation.

Example components expect the /jsonapi endpoint to return content from Drupal's Umami demo site.

📚 Notes

1. Don't use MAMP/Pro (for now)

Either use the 1-click Gitpod solution, or if you prefer to work locally, install Docker, and ddev and use those.

Remember to:

  • Run mkcert -install
  • Stop and shut-down MAMP
  • Stop other containers running on port 80/443
    • Check for any apps running on ports with e.g. lsof -nP -iTCP -sTCP:LISTEN | grep 443

2. druxt-site doesn't work with subfolders or obscure ports

So, why not use MAMP Pro?

In my experience installing Drupal and setting a custom hostname, subfolder and port resulted in errors when running npm run dev - (either 404 and a crash or a ECONNREFUSED in the <DruxtDebug /> component on the front-end).

DruxtSite debug component producing ECONNREFUSED error

This is not something I could resolve easily by searching, so I asked for help in the #druxt-site channel on the official Druxt discord server. Permalink →

TL;DR - when attempting to change ports from the defaults (in .ddev/config.yaml) - the npm run dev command will fail.

router_http_port: "80"
router_https_port: "443"

druxt-sandbox-next's People

Contributors

miclgael avatar

Stargazers

Stuart Clark avatar

Watchers

James Cloos avatar  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.