Git Product home page Git Product logo

drupal-vuejs-todo's Introduction

Drupal + vuejs todo

Build Status

This project is based on drupal-composer/drupal-project

Short overview

This is an example about how to build a decoupled drupal + vuejs application. Even it's not ready for production is a good starting point if you just need to understand how this kind of application can work together.

Most of the backend lives on the web folder and the fronted lives on the frontend folder.

After the installation you can expect a drupal website just needed to store the data and manage user permissions, and a javascript application that is the real interface for the users.

Install backend

  • Make sure you have composer and all the stuff to run a drupal on you host. PHP 7.1 or higher is required (https://www.drupal.org/docs/8/system-requirements)
  • Copy web/sites/default/example.settings.local.php into web/sites/default/settings.local.php and customize the values (at least related with database)
    cp web/sites/default/example.settings.local.php web/sites/default/settings.local.php
    vim web/sites/default/settings.local.php
    
  • Run composer project-install
  • Make all the changes required for your webserver to make http://drupal-vuejs-todo.localhost serve the web folder of this repo.

Install frontend

###Requirements:

You can upgrade your version of nodejs with those commands

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

###Run the dev environment:

  • Go to frontend folder
  • run npm install or yarn install
  • run npm run dev or yarn dev

Expected result after install the project

Troubleshooting

I can't serve the drupal in http://drupal-vuejs-todo.localhost

Just change the {BASE_API_URL} here: https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/webpack.config.js#L91

Yarn can not find install on Ubuntu

There's a problem with package cmdtest on ubuntu that throws this error:

00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'

you can just try npm or remove old package and isntall the good one:

sudo apt remove cmdtest
sudo apt remove yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

I'm very interested but I can't do it run

I can provide some basic suppor on twitter: https://twitter.com/alvar0hurtad0

drupal-vuejs-todo's People

Contributors

alvar0hurtad0 avatar herugor avatar

Watchers

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