Giter Club home page Giter Club logo

4geeksacademy / wordpress-hello Goto Github PK

View Code? Open in Web Editor NEW
22.0 4.0 18.0 4.05 MB

WordPress boilerplate for professional development: One Click Install, One Click Deploy, Environmental Variables, MCV Pattern, Composer, etc. Gitpod integration.

Home Page: https://gitpod.io/#https://github.com/4GeeksAcademy/wordpress-hello

PHP 46.42% Shell 34.46% CSS 5.74% Dockerfile 7.92% Hack 5.46%
boilerplate boilerplate-template wordpress-boilerplate wordpress-starter-kit wordpress-starter wordpress-theme wordpress-development wordpress-starter-theme wordpress-php-library

wordpress-hello's Introduction

๐Ÿšจ WARNING ๐Ÿšจ This repository its not maintained anymore, we don't recomend using anymore.

WordPress Boilerplate for Professional Development

Headless WordPress Boilerplate to start a new project in WordPress in just 2 minutes, with MVC API generation like any other modern framework like Express, Flask or Slim PHP.

Video Tutorial about this boilerplate

Features

  1. Dockerfile for a working LAMP environment with PHP 7.2.19 and PHPMyAdmin.
  2. WordPress CLI (WP CLI).
  3. Support for .env file to easily publish into production with environment variables.
  4. One commend install with install.sh bash script.
  5. It comes with a WordPress Plugin ideal for using headless WordPress API working with typical MVC (Model View Controller) pattern.
  6. Composer integration to install plugins or PHP packages via package manager.
If used with Gitpod
  1. Easy access to apache and PHP error log with commcommand: gp open /var/log/apache2/error.log

Installation Procedure

1) Start by installing the boilerplate

There are 3 ways of installing this:

  1. Use git to clone re repo
$ git clone [email protected]:4GeeksAcademy/wordpress-hello.git
  1. Just click here to use it with gitpod.

2) Install the composer packages

$ composer install

3) Create a .env file with your database and site information (on the workspace root) and run the run the installator

$ bash install.sh

You are done! Start working!

Check your website, you are going to see a "Hello Rigoberto" message, you can login into the dashboard with your c9 username and the password you specified.

- Adding API enpoints

This boilerplate comes with a sample API andpoint already, all api enpoints can be added into the setup_api.php file like this:

// adding a GET /courses endpoint handled by the function getDraftCourses in the SampleController.php file
$api->get([ 'path' => '/courses', 'controller' => 'SampleController:getDraftCourses' ]);

Here is more info on how to create the API endpoints.

- Adding Entities (Post Types)

All the Post Types configuration is done in the setup_types.php file like this:

// adding Post Type "Course" handled by the file Course.php
$typeManager->newType(['type' => 'course', 'class' => 'Course'])->register();

Here is more info on how to create the post-types.

wordpress-hello's People

Contributors

alesanchezr avatar haydavid23 avatar simplesimpleads avatar

Stargazers

 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

wordpress-hello's Issues

Gitpod Build Error

I'm not sure, but maybe this approach is outdated. I'll search for different options or more recent options to accomplish the same with some existing plugin. Regardless, I would like to info you that running this repo in Git pod is failing when building the image with the following error messaging:

See attached file:
gitpod_build_image-errors.TXT

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.