Pry

Installation

Learn how to install.

Before proceeding, you'll need to have the last stable NodeJS and npm installed on your machine. You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.

Installation

The installation process can be done in several ways and is supported by several package managers.

  1. CLI installation.

    npx pry-cli@latest
    OptionDescription
    -v, --variant <pro/lite>Select project variant
    -h, --helpShow help menu

    If no project name is provided, the CLI will ask for it:

    ? What is your project named? #(my-app)
    ? Which variant do you want? #(pro/lite)
  2. Clone repository

    Clone the repository and install dependencies.

    npm install

Start development server

Once the installation is done, you can now run your app.

npm run dev

This runs the app in development mode. Open localhost:3001 to view it in the browser.

While in development mode, the page will automatically reload if you make changes to the code. Should you have any, you will see the build errors and lint warnings in the console.

The app uses ESLint, so you will get detailed warnings and errors as well as best practice hints.

Build project files

npm run build

Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

Start production server

npm start

Executing this command with npm will launch your server, enabling your application to go live and serve users. This step signifies the transition from development to a fully operational production environment.

On this page