Git Product home page Git Product logo

demo.willopez.com's Introduction

NoomaPress

A framework for building moderm WordPress interfaces. Traditional WordPress themes are cumbersome and difficult to build, and force the developer to used archaic technologies, i.e. PHP templates. NoomaPress is framkework that uses modern technologies to facilitate building WordPress interfaces.

NOTE: This project is in the very early stages of development, use at your own risk.

Technologies

WordPress React Apollo GraphQL React Router Reactstrap Docker Webpack

Requirements

  • Node 8+
  • Docker
  • Docker Compose

Getting Started

Install dependencies

npm install

The following commands will build the necessary containers to run the project. There will be three containers in total:

  1. UI Container - node based app to build the interface
  2. WordPress Admin Container - WordPress admin interface
  3. WordPress Database Container - Database

Build containers

# at project root
make
# inside wordpress folder
./wordpres/make

Stand up all containers

docker-compose up

Initialize WordPress

# inside the wordpress directory
bash wp-init.sh

Start project

npm run dev

UI can be reached at localhost:3000

Project Structure

├── build                   # Built files
├── src                     
│   ├── api                 # GraphQL endpoint
│   ├── client              # Client bundle
│   ├── components          # React components
│   ├── graphql             # GraphQL queries
│   ├── layouts             # Page layouts
│   ├── pages               # Pages
│   ├── routes              # React Router routes
│   ├── server              # Express server
│   ├── shared              # Shared components
│   └── static              # Styles, images etc...
└── wordpress               # WordPress initalization script, Dockerfile

Demo

Running in Production

Build and run project

npm run build
npm start

Build containers

# at project root
make

# inside wordpress folder
./wordpres/make
docker-compose -f docker-compose.yuml -f docker-compose.prod.yml up

Initialize WordPress

# inside the wordpress directory
bash wp-init.sh -e prod

Docker and Docker Compose Integration

Docker

Docker images are built using two different Dockerfiles.

Dockerfile - builds the image for the UI

Dockerfile-wp builds a custom image to run WordPress

Docker Compose

Three docker-compose files are used to facilitate running the project in different environments.

docker-compose.yml - base configuration

docker-compose.override.yml - developement environment overrides. These values are automatically applied when docker-compose up is executed.

docker-compose.prod.yml - prodcuction configuration values.

demo.willopez.com's People

Contributors

willopez avatar

Watchers

 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.