All Projects → cotech → website

cotech / website

Licence: GPL-3.0 license
The Cooperative Technologists WordPress website

Programming Languages

PHP
23972 projects - #3 most used programming language
CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
Dockerfile
14818 projects
hack
652 projects

Projects that are alternatives of or similar to website

qroko
WordPress theme for headless CMS
Stars: ✭ 20 (-13.04%)
Mutual labels:  wordpress-theme
maupassant
A WordPress Theme ported from the Typecho Theme by Cho.
Stars: ✭ 31 (+34.78%)
Mutual labels:  wordpress-theme
sleek
The WordPress Theme for Developers.
Stars: ✭ 35 (+52.17%)
Mutual labels:  wordpress-theme
JieStyle-One
WordPress Themes
Stars: ✭ 25 (+8.7%)
Mutual labels:  wordpress-theme
wp-bootstrap4-navwalker
A custom WordPress nav walker class to fully implement the Twitter Bootstrap 4.x navigation style in a custom theme using the WordPress built in menu manager
Stars: ✭ 40 (+73.91%)
Mutual labels:  wordpress-theme
TigerMaterial
🐯Make Fun with TigerMaterial on WordPress.
Stars: ✭ 18 (-21.74%)
Mutual labels:  wordpress-theme
playground-for-beaver-themer
Simple bare-bone WordPress theme for Beaver Themer plugin.
Stars: ✭ 16 (-30.43%)
Mutual labels:  wordpress-theme
knob-mvc
[abandoned] Knob is a PHP MVC Framework to create Wordpress templates easier and funnier than ever before.
Stars: ✭ 14 (-39.13%)
Mutual labels:  wordpress-theme
handbook
We're a small high-trust livelihood pod doing tech consulting within Enspiral.
Stars: ✭ 35 (+52.17%)
Mutual labels:  cooperative
Nuxtjs-Wordpress
🎉 Nuxtjs + Wordpress REST API 主题;支持企业微信通知功能;全站前后端分离,自适应,白日、黑夜两种主题切换
Stars: ✭ 214 (+830.43%)
Mutual labels:  wordpress-theme
wp-bootstrap4-sass
A clean slate Wordpress theme template with Bootstrap(4) Sass.
Stars: ✭ 28 (+21.74%)
Mutual labels:  wordpress-theme
foxer
Foxer starter theme based on _s.
Stars: ✭ 14 (-39.13%)
Mutual labels:  wordpress-theme
themes-starter-material
Material Design WordPress Starter Theme.
Stars: ✭ 22 (-4.35%)
Mutual labels:  wordpress-theme
luxe
Luxe is a WordPress starter theme using a modern workflow and best practices.
Stars: ✭ 22 (-4.35%)
Mutual labels:  wordpress-theme
DemOS
Free, simple, extremely lightweight, stackless, cooperative, co-routine system (OS) for microcontrollers
Stars: ✭ 18 (-21.74%)
Mutual labels:  cooperative
barebones
React based WordPress Theme, built with create-react-wptheme. This is a starter theme with just the core WordPress functionality.
Stars: ✭ 35 (+52.17%)
Mutual labels:  wordpress-theme
bootstrap-on-wordpress-theme
a blank bootstrap 3.3.7 ready wordpress theme
Stars: ✭ 25 (+8.7%)
Mutual labels:  wordpress-theme
xm-vue-wordpress-theme
由于SPA页面不能SEO,此主题不在更新,有兴趣的朋友可以看我另一个服务端渲染的主题,也是前后端分离的,https://github.com/D-xuanmo/xm-nuxtjs-wordpress; 一款基于vue开发的wordpress主题
Stars: ✭ 35 (+52.17%)
Mutual labels:  wordpress-theme
librecoop
Coop mode for dhewm3, open for everyone.
Stars: ✭ 41 (+78.26%)
Mutual labels:  cooperative
padma-theme
Free Drag & Drop WordPress and ClassicPress Theme Builder. Updated and improved alternative to WordPress/ClassicPress Theme Building. Forked from Headway Themes 3.8.X.
Stars: ✭ 21 (-8.7%)
Mutual labels:  wordpress-theme

Cooperative Technologists

Requirements

  • PHP >= 5.4
  • Node & NPM
  • Gulp
  • Composer - Install
  • MySQL

Development

  1. Check out this repository

  2. Install the dependencies

  3. From the root run

    composer install
    cd ./web/app/themes/coop-tech-oowp-theme
    composer update
    npm install
    gulp
    
  4. Download a copy of the CoTech database from the CoTech site (you'll need admin permissions)

  5. Load the copy of the database into a local database e.g. mysql -u root cotech_db < cotech_data.sql

  6. Copy ./.env.example to ./.env

  7. Edit ./.env and enter the credentials of your database and the path to your local website

  8. Visit the path you entered in Step 7 e.g. http://localhost/cotech/web

  9. Enjoy playing with your new local copy of the site

Using docker

For an easy to use development environment run we use Docker Compose.

  1. Make sure you have downloaded Docker and have it installed on your machine and running.
  2. On your command line of choice kickstart it all with docker-compose up -d run from inside this directory. You can follow the logs with docker-compose logs -f.
  3. It will take some time, especially for the first run.

Then you can access:

URL Description
localhost:18080 WordPress URL (dev:dev)
localhost:18081 PHPMyAdmin

Images

Images used on the cotech website (go in web/app/uploads) will be downloaded when you first setup your environment. If you want to update them again, you can run:

docker-compose exec assets /download-images.sh --force

Deployment

Changes to the dev branch are automatically applied to the dev site. This works via a crontab which runs a script which checks for changes and if there are any then it runs the update script.

The live site is set up exactly the same way but tracking the master branch.

If the dev site images and database needs syncing from the live site then please contact [email protected] and ask him to run the live2dev Ansible playbook.

Deployment (manual)

Currently the live and dev sites are running on Werbarchitects shared hosting and although SFTP/SSHFS and phpMyAdmin access is to available to any developers who need it (ask [email protected] to add your SSH public keys to the server and to email you the MySQL login details), ssh access is only availabe to Webarchitects sysadmins, see the wiki for the steps to manually update the code.

Querying the WordPress database directly

Even though the format of the WordPress database is pretty horrible you can perform analytics queries on a local copy of the database which can be downloaded from the admin section of the site if you have Admin permissions.

e.g. to get the names and email addresses of co-ops that have not entered a turnover so you can nag them:

SELECT * FROM (
    SELECT post_id,  post_title, meta_value as turnover
    FROM `wp_postmeta` LEFT JOIN wp_posts on post_id = ID
    where meta_key = 'turnover'
    and post_status = 'publish'
    and meta_value = "") as noturnover
LEFT JOIN wp_postmeta on noturnover.post_id = wp_postmeta.post_id
where meta_value REGEXP  '^[^@]+@[^@]+\.[^@]{2,}$'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].