Skip to content

phact-org/phact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phact logo

Phact

The framework for building server-rendered React applications.


Caution

This framework is still in development progress. DO NOT USE IT IN PRODUCTION.


Installation

Install the Phact CLI globally using npm:

npm install -g @phact-org/phact-cli

Quickstart

Follow these steps to get a new project up and running.

  1. Create a New Project

    Run the following command in your terminal, replacing with the desired name for your project.

    phact create <project-name>
  2. Build the Project

    Navigate into your project directory and run the build command.

    phact build

    Alternatively, you can use the npm script:

    npm run build

    This process creates a dist folder containing the rendered React pages with Phact placeholders and the necessary JavaScript bundles.

  3. Prepare for Serving The public folder is the web server's entry point. To ensure your application runs correctly, you must copy the JavaScript bundles from the dist folder into the public folder.


Support Us ⭐

If you like this project, please consider giving it a star on GitHub! It helps us a lot and motivates us to keep improving the framework.