Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.
/ website Public archive

4Geeks Academy official website in WordPress

Notifications You must be signed in to change notification settings

4GeeksAcademy/website

Repository files navigation

4GeeksAcademy Website Installation

Installing the LMS

  1. Clone this repository and get into the website2 directory
$ git clone [email protected]:4GeeksAcademy/website.git
$ cd website
  1. Update the .env file
export DB_USER="root"
export DB_NAME="wordpress"
export DB_PASS=""
export SITE_NAME="My 4Geeks Super Site"
export SITE_URL="$(gp url 8080)"
export SITE_USER="gitpod"
export SITE_PASS="12341234"
export SITE_EMAIL="[email protected]"
  1. Run install bash script
$ sh install.sh
  1. Include these new variables into your configuration file:
define('BREATHECODE_API_HOST', 'https://api.breatheco.de');
define('BREATHECODE_ASSETS_HOST', 'https://assets.breatheco.de');

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', false);
define('WP_ASYNC_LOADING', false);
define('UGLIFY_HTML', false);

define('IPSTACK_KEY', '');
define('ACTIVE_CAMPAIGN_SERVER', '');
define('ACTIVE_CAMPAIGN_KEY', '');

define('WP_HOME','https://yourdomain.com');
define('WP_SITEURL','https://yourdomain.com');
  1. Create database for your installation
$ wp db create

Note: first check if MySQL is up an running (here is how to start mysql and phpmyadmin if you are using c9)

  1. Install wordpress
$ wp core install --url={domain.com} --title="First Attempt" --admin_user={yourusername} --admin_password={yourpassword} --admin_email={[email protected]}

Note: If you prefer to follow the wordpress wizard, access your website URL to follow it, and can skip this step.

  1. Test your wordpress instalation (login) by going to /wp-admin

  2. Install composer (if needed)

  3. If everything is ok, check your composer.json remove or add any plugins based on your taste and run:

$ composer install
  1. Install node_modules and dependencies
$ npm install

Note: Make sure you have npm installed.

  1. Run webpack every time you want to generate a new bundle
$ npm run build:dev

You can run the unit testing like this:

./vendor/bin/phpunit wp-content/themes/the-fastest/tests/ --colors

The Application Uses the following plugins

These are all the mandatory plugins for the wordpress instalation (any other plugin is not really mandatory)

Included Via Plugin
composer install polylang
composer install email-templates
composer install nav-menu-roles
composer install post-types-order
current repo GravityForms
current repo Visual Composer
current repo GravityForms Registration Add-On
current repo Restrict User Access
current repo Toolset Types

Plugin usage description

  1. Toolset WP Types: The theme is heavily integrated with that plugin, all the custom posts and taxonomies have been configured with this tool and there is a folder class/types/ that contains all the code about this integration, staring for TypesSettings.class.php that is the main manager class.

  2. Gravity Forms: This plugin handles most of the interactions with the user. We use the "User Registration add-on" to implement the sign-up functionality. All the other forms are heavily integrated as weel, each of the Gravity Forms takes care of a very particular but important data imput from the user.

  3. VC Comporser: This plugin is the reason for the platform being on wordpress, the idea is to create many components to help the content team create better courses. Components like: Replit Exercise, Quizz, Regex Parser, etc.

Author

Alejandro Sanchez

  • About me: alesanchezr.com

  • What happends next

  • Week by week

  • A day at the academy

  • Facts

    • Senior only mentors
    • SAllary increase average
    • Open posssions right now
    • Placement rate of ours
  • Skills

  • Technologies (try to blend it with weeb by week section.)

  • Pricing

  • Students

  • Proyects