Installation
Install Pashmak CLI
First, install the Pashmak CLI globally:
- npm
- Yarn
- pnpm
npm install -g @devbro/pashmak
yarn global add @devbro/pashmak
pnpm add -g @devbro/pashmak
Create a New Project
Use the Pashmak CLI to create a new project:
pashmak create project --path /path/to/project
cd /path/to/project
Install Dependencies and setup
- npm
- Yarn
- pnpm
npm install
npm run pdev migrate
yarn install
yarn pdev migrate
pnpm install
pnpm run pdev migrate
Start Development Server
To start the development server with all services (HTTP server, scheduler, and queues):
- npm
- Yarn
- pnpm
npm run pdev start --all
yarn pdev start --all
pnpm run pdev start --all
Build and Run for Production
Pashmak has good performance with regular start command. If you plan on running for production and want to maximize performance, use minified code, and optimize size of the build, you can use the build command:
- npm
- Yarn
- pnpm
npm run build
npm run start
yarn build
yarn start
pnpm build
pnpm start