Skip to content

kinsta/clone-wp-site

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

clone-wp-site

How To Build a React WordPress Cloning Application With Kinsta API

Learn how to use the Kinsta API to make HTTP requests using the Fetch API in a React application.

Read the full article.

Installation

  1. Clone or fork the repository.

Kinsta Application Hosting Setup

Dependency Management

Kinsta automatically installs dependencies defined in your package.json file during the deployment process.

Environment Variables

When deploying, add the Kinsta API key and your company's ID as environment variables using the following variable name:

REACT_APP_KINSTA_COMPANY_ID = 'YOUR_COMPANY_ID' 
REACT_APP_KINSTA_API_KEY = 'YOUR_API_KEY'

Port

Kinsta automatically sets the PORT environment variable. You should not define it yourself, and you should not hard-code it into the application.

Start Command

When deploying an application, Kinsta automatically creates a web process based on the npm start in the package.json as the entry point.

Deployment Lifecycle

Whenever a deployment is initiated (through creating an application or re-deploying due to an incoming commit), the npm install and npm build commands are run.

What is Kinsta

Kinsta is a developer-centric cloud host / PaaS. We’re striving to make it easier for you to share your web projects with your users. Focus on coding and building, and we’ll take care of deployment and provide fast, scalable hosting. + 24/7 expert-only support.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published