GithubHelp home page GithubHelp logo

e-commerce1's Introduction

WordPress Boilerplate for Professional Development

Open in Gitpod

  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 the Breathecode CLI
$ bc start:wordpress -r
  1. Use git
$ 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.

e-commerce1's People

Contributors

b-quintana avatar

Watchers

 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.