Coder Social home page Coder Social logo

press.js's Introduction

Press.js

A React app using WordPress as the backend to provide a single-page blog.

Development

For developing press.js, a wordpress server is required. This is very easy to do using docker. First install docker and follow the instructions below.

Wordpress

To set up a mariadb and wordpress container for development, run the following:

# Set up wordpress mysql container
$ docker run --name press-mariadb -e MYSQL_ROOT_PASSWORD=a-secret-pw -d mariadb
# Set up wordpress docker container
$ docker run --name press-wordpress --link press-mariadb:mysql -p 8080:80 -d wordpress

After this, wordpress should be running on http://localhost:8080. Go there and fill in the form to set it up for first use.

Try going to http://localhost:8080/?rest\_route=/wp/v2/posts and you should see a JSON result. If not, something went wrong.

Press.js

To run press.js locally, first make sure you are running the correct version of node.js and npm. Node.js >= 8 is highly encouraged, and can be installed using nvm with the following command.

$ nvm install

Now install javascript dependencies with npm.

$ npm install

Finally you can run the development server using npm.

$ npm start

press.js's People

Contributors

thms-rmb avatar eliihen avatar

Watchers

James Cloos 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.