Caution
This framework is still in development progress. DO NOT USE IT IN PRODUCTION.
Install the Phact CLI globally using npm:
npm install -g @phact-org/phact-cliFollow these steps to get a new project up and running.
-
Create a New Project
Run the following command in your terminal, replacing with the desired name for your project.
phact create <project-name>
-
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
distfolder containing the rendered React pages with Phact placeholders and the necessary JavaScript bundles. -
Prepare for Serving The
publicfolder is the web server's entry point. To ensure your application runs correctly, you must copy the JavaScript bundles from thedistfolder into thepublicfolder.
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.
