Git Product home page Git Product logo

gdk's Introduction

Guifi Development Kit (GDK)

The Guifi Development Kit sets up a development environment for the Guifi.net website using Vagrant on a VirtualBox virtual machine, where the host and guest machines share three folders:

  • Guifi Drupal module
  • Guifi Budgets Drupal module
  • Guifi 2011 Drupal Theme

Pre-requisites

The GDK uses Vagrant and VirtualBox, as well as some libraries and packages like zlib1g-dev and Git.

Installation on Debian 8 Jessie

To set up the GDK on a Debian 8 Jessie host, run the following steps to install the required packages.

VirtualBox

Activate the "contrib" section in /etc/apt/sources.list:

deb http://http.debian.net/debian/ jessie main contrib

Update the packages repository

apt-get update

Install VirtualBox and the Linux headers packages for your host:

apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox

Vagrant

Install Vagrant and the required libraries and packages:

apt-get install vagrant zlib1g-dev git

MacOS X

VirtualBox

Download from Virtualbox page

Vagrant

Download from Vagrant page

Preparing the environment

The environment will be built in a folder named "guifi_dev". You can choose another name, if you prefer. Start by creating it and cloning the GDK repository there:

mkdir guifi_dev
cd guifi_dev
git clone https://github.com/agustim/gdk

To set up the development environment you need to download the sources:

  • Guifi.net module => guifi folder
  • Guifi.net budgets module => budgets folder
  • Guifi.net 2011 theme => theme_guifinet2011 folder

You can download these sources automatically by running the first_step.sh script:

cd gdk
./first_step.sh

Deployment

To deploy the virtual machine with the development environment, go to the guifi_dev folder (or the name you chose) and run:

cd gdk
vagrant up

The process takes a few minutes. After that, you can start editing the code in your local machine and see the results live at

http://localhost:8280

You need save configuration of theme in:

http://localhost:8280/ca/admin/build/themes/settings/guifi.net2011

If you need to make changes to the guest virtual machine, you can open a terminal via SSH:

vagrant ssh

You can suspend the virtual machine with:

vagrant suspend

gdk's People

Contributors

agustim avatar rogerpueyo avatar

Stargazers

Pablo Castellano avatar

Watchers

 avatar James Cloos avatar  avatar

gdk's Issues

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.