GithubHelp home page GithubHelp logo

gsa / datagov-wp-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from roots/bedrock

3.0 14.0 12.0 748 KB

Data.gov WordPress boilerplate

Home Page: https://data.gov/

PHP 70.00% Dockerfile 5.40% Shell 20.12% Makefile 4.48%

datagov-wp-boilerplate's Introduction

CircleCI

[Datagov-wp-boilerplate]

WordPress boilerplate based on Bedrock

Bedrock is a modern WordPress stack that helps you get started with the best development tools and project structure.

Much of the philosophy behind Bedrock is inspired by the Twelve-Factor App methodology including the WordPress specific version.

Updating WP and plugin versions

Updating your WordPress version (or any plugin) is just a matter of changing the version number in the composer.json file.

Then running composer update will pull down the new version.

Community

Most of Data.gov discussions happen at Data.gov github

Development

Prerequisites

Setup

Build the docker containers.

$ make build

Run the docker containers.

$ make up

Activate all the installed plugins and theme.

$ make setup

The admin password is in the output of the above command.

Open your browser to localhost:8000.

TODO: initialize the database with seed data so the theme loads properly.

Clean local directories and containers.

$ make clean

Update dependencies

Build the containers and run composer update within the container.

$ make update

Restoring database dumps

You don't need a database dump for most development tasks. If you need a database dump, you can create one following instructions from the Runbook.

Once you have the database dump, you can restore it for your local development environment.

$ docker-compose exec -T db mysql -u root -pmysql-dev-password datagov \
  < <(gzip --to-stdout --decompress databasedump.sql.gz)

Admin dashboard

In order to access the admin dashboard for development, you must first disable saml and update the admin password.

First, deactivate the saml plugin.

$ docker-compose exec app wp --allow-root plugin deactivate saml-20-single-sign-on

Reset the admin password to password.

$ docker-compose run --rm app wp --allow-root user update admin --user_pass=password

Open the login page localhost:8000/wp/wp-login.php. Login with the user admin password password.

datagov-wp-boilerplate's People

Contributors

aaemnnosttv avatar adborden avatar alexsomeoddpilot avatar anup-khanal avatar austinpray avatar brandonshutter avatar dano-reisys avatar dartagan avatar eastmanenator avatar etcook avatar fabschurt avatar foxaii avatar fredriksundstrom avatar fuhuxia avatar iamskok avatar jbrown-xentity avatar louim avatar mogul avatar philipashlock avatar pjsharpe07 avatar qwp6t avatar rasmusbe avatar remyvv avatar retlehs avatar robert-bryson avatar skipkeats avatar starise avatar swalkinshaw avatar tomasvotruba avatar ydave-reisys avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.