Giter Club home page Giter Club logo

pwa-demo's People

Contributors

d-pietka avatar dependabot[bot] avatar janmaennig avatar liquidpl avatar lukaszuznanski avatar mercs600 avatar tmotyl avatar vladimirfalconpiva avatar whmyr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pwa-demo's Issues

Unabled to Exec command 'ddev setup-pwa-front first-time' on the host

first thanks a lot for the great job. I'm having some problem with the pwa-demo installation. The Front end can not be created.

Local env.
Mac Os Catalina 10.15.7
DDEV 1.16.6

Error reproduction steps:

  1. Clone current master branch
  2. Switch to app directory
  3. run ddev start

Error:

=== Running task: Exec command 'ddev setup-pwa-front first-time' on the host (digitalnb031), output below 
Frontend setup:
Creating frontend app: 

/Users/user/Sites/pwa-demo/.ddev/commands/host/front: line 19: npm: command not found
Failed to run front first-time; error=exit status 127
task failed: Exec command 'ddev setup-pwa-front first-time' on the host (digitalnb031): exit status 1 
A task failure does not mean that ddev failed, but your hook configuration has a command that failed. 
=== Running task: Exec command 'ddev pwa-front rebuild' on the host (digitalnb031), output below 
yarn run v1.22.10
error Couldn't find a package.json file in "/var/www/html/front"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Failed to run container-front rebuild: exit status 1
task failed: Exec command 'ddev pwa-front rebuild' on the host (digitalnb031): exit status 1 
A task failure does not mean that ddev failed, but your hook configuration has a command that failed. 
=== Running task: Exec command 'ddev setup-pwa-front post-start-info' on the host (digitalnb031), output below 
Frontend has been rebuilt.

Use ddev pwa-front start to start frontend service and get server output in this console.
Successfully started pwa-demo 
Project can be reached at https://pwa-demo.ddev.site https://api.pwa-demo.ddev.site https://127.0.0.1:55240 

[TASK] Upgrade ddev to 1.15.0

After upgrading ddev to 1.15.0 we can't properly override nginx configuration. Find a way to override global configuration.

Demo does not work

Hi i am trying to play around with headless typo3 and found this nice repo to start with. Unfortunately neither the frontend nor the backend runs.

Vue version

Hello, are you planning to release some version with updated version of vue? I mean vue3 instead vue2?

"No Babel config file detected"

In order to play around with nuxt-typo3 you provide an installation guide here, which I followed:
https://github.com/TYPO3-Initiatives/pwa-demo#nuxt-typo3-development-together-with-typo3-pwa-demo-api

The resulting folder structure looks like this:
Bildschirmfoto 2021-10-25 um 12 00 37

As you can see, there are console errors that say:
Parsing error: No Babel config file detected for /.../typo3-headless-nuxt-pwa/nuxt-typo3/babel.config.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files.

starting with the babel file itself. I wonder why I get these errors? It obviously means that you have something installed that I don't. If that is the case, this has to be figured out and mentioned in the documentation.

I kindly ask you to respond sooner this time, not only months later and only because there is a code sprint coming up in 2 days – thank you!

Adding typo3-nuxt does not work as described

Since I am preparing a PR for the Docu, I'd like to ask you about a topic that does not work in my case. Personally, I do not need it, but for the sake of the docu I kindly ask for feedback. Thank you!

I want to add the typo3-nuxt package to my pwa-demo setup. To do so i follow this documentation:

https://github.com/rowild/pwa-demo#development

However, when I start the pwa frontend with ddev pwa-front start again (after stopping), I get Error: Cannot find module 'nuxt-typo3'
I am pretty sure that I sym-linked the folder properly. But I am not sure if the folder structure is the way it is supposed to be. Therefore I added some screenshots.

What I am doing wrong here?

On Slack, somebody mentioned that the folder structure might have changed between TYPO3 9 and 10. If that is so, then the docu should reflect that. Or the issue should be fixed, in case it is one.

Sym-linking:
Bildschirmfoto 2021-07-22 um 12 22 20

Error message:
Bildschirmfoto 2021-07-22 um 12 20 27

Folder structure:
Bildschirmfoto 2021-07-22 um 12 22 31

E2E test by Cypress

We have discussed with @rogoit and concluded that it's worth implementing E2E tests. We've decided to house the tests in this repository. This decision was based on having the most up-to-date backend/frontend versions and a consistent database, which is essential for conducting E2E tests.

Here are the simplest test cases we can start with:

Core

  • Does the page return 202 code?
  • Does the non-existing page return 404 code?
  • Does the navigation return the correct links (which were added in backend)?
  • Has the language changed after navigating to the localized page?
    • Is the navigation translated?
    • Is the page content translated?
  • Does the redirection work?
  • Is the new frontend layout applied?
  • Is the new backend layout applied?
    • Is the content element displayed in the right column position?
  • Does the frontend render the correct component types?

Content Elements

Shared properties

Given our common approach to handling shared component properties, such as header and headerLayout, we can establish a foundational test for multiple components. This base test can then be used across various test cases.

  • Does the component display the correct header message
  • Does the component display the correct header level
  • Does the component display the correct header link
  • Does the component display the correct sub header

Specific Content Elements

Initially, I'd suggest focusing on the basics, like:

  • Text
  • Textpic
  • Textmedia

The next step will be implementing E2E testing on Github actions.

@rogoit, if there are any critical tests you'd like to add, please do so.

[TASK] Set TYPO_CONTEXT to Development mode by default

Because DDEV is mainly used for development purposes, in my opinion TYPO3 should run in development environment by default.

I tried to change the nginx_typo3.conf but it seems to have no effect here:

    location ~ \.php$ {
        # [...]
        fastcgi_param TYPO3_CONTEXT Development;
    }

"ddev start" fails with "Cannot destructure property 'nuxt' of 'this'"

Following the installation steps from the docs, ddev start fails with the following error:

yarn run v1.22.19
$ nuxt build
ℹ Using default Tailwind CSS file from runtime/tailwind.css                                                                           nuxt:tailwindcss 13:51:54

 ERROR  Cannot destructure property 'nuxt' of 'this' as it is undefined.                                                                               13:51:54

  at postcss8Module (node_modules/@nuxt/postcss8/dist/index.js:15:10)
  at installModule (node_modules/@nuxt/kit/dist/index.mjs:416:9)
  at async setup (node_modules/@nuxtjs/tailwindcss/dist/module.mjs:186:7)
  at async ModuleContainer.normalizedModule (node_modules/@nuxt/kit/dist/index.mjs:167:5)
  at async ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:239:20)

It is probably related to new nuxt/kit versions, see nuxt/nuxt#10840

Can't get the frontend running

Hi there,
just tried to get this running, Bac kend works well, but I can't get the frontend running:

Error: unknown command "setup-pwa-front" for "ddev"
Run 'ddev --help' for usage.
Task failed: Exec command 'ddev setup-pwa-front first-time' on the host (Taunusweb-22): exit status 255
A task failure does not mean that ddev failed, but your hook configuration has a command that failed.
command 'container-front' contains CRLF, please convert to Linux-style linefeeds with dos2unix or another tool, skipping /home/taunusweb/pwa-demo/.ddev/commands/web/container-front
command 'front' contains CRLF, please convert to Linux-style linefeeds with dos2unix or another tool, skipping /home/taunusweb/pwa-demo/.ddev/commands/web/front
Error: unknown command "pwa-front" for "ddev"
Run 'ddev --help' for usage.
Task failed: Exec command 'ddev pwa-front rebuild' on the host (Taunusweb-22): exit status 255
A task failure does not mean that ddev failed, but your hook configuration has a command that failed.
command 'container-front' contains CRLF, please convert to Linux-style linefeeds with dos2unix or another tool, skipping /home/taunusweb/pwa-demo/.ddev/commands/web/container-front
command 'front' contains CRLF, please convert to Linux-style linefeeds with dos2unix or another tool, skipping /home/taunusweb/pwa-demo/.ddev/commands/web/front
Error: unknown command "setup-pwa-front" for "ddev"
Run 'ddev --help' for usage.
Task failed: Exec command 'ddev setup-pwa-front post-start-info' on the host (Taunusweb-22): exit status 255
A task failure does not mean that ddev failed, but your hook configuration has a command that failed.

Do you have any hints?

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.