Evolution Manager is an open-source interface for managing the Evolution API, simplifying the creation and administration of API instances with advanced features and diverse integrations.
npm install evolution-managerbash
npm install -g evolution-manager
`
2. Set Up PM2 for Evolution Manager:
`bash
evolution-manager pm2 setup
`
These two steps will install the Evolution Manager CLI globally on your system and configure it to run with PM2, a powerful process manager.
$3
These two steps will install the Evolution Manager CLI globally on your system and configure it to run with PM2, a powerful process manager.
1. Install Evolution Manager Globally:
- Ensure Node.js and NPM are installed on your system.
- Install Evolution Manager globally using NPM to access the CLI (Command Line Interface):
`bash
npm install -g evolution-manager
`
2. Using the CLI:
- After installation, access the CLI commands by typing evolution-manager in your terminal.
- Available commands include:
- help: Displays a list of available commands and their descriptions.
- server: Server-related operations.
- start [--port=9615]: Starts the server on the specified port (default: 9615).
- build: Builds the project.
- pm2: Manages the process with PM2.
- setup: Sets up PM2 for the project.
- start: Starts the service with PM2.
- stop: Stops the service in PM2.
- restart: Restarts the service in PM2.
- delete: Removes the service from PM2.
3. Running the Project with PM2:
- To set up and manage the service with PM2, start with the setup command:
`bash
evolution-manager pm2 setup
`
- Then, you can start, stop, restart, or delete the service using the respective pm2 commands in the CLI.
These instructions provide a streamlined method for managing Evolution Manager across various systems, utilizing PM2 for efficient service start-up, maintenance, and control.
Development Setup
1. Prerequisites: Ensure you have yarn installed on your system.
2. Clone the Repository:
`bash
git clone https://github.com/gabrielpastori1/evolution-manager.git
cd evolution-manager
`
3. Install Dependencies:
`bash
yarn install
`
4. Run Development Server:
`bash
yarn dev
`
This will start a local development server. You can access the app at localhost:8080.
Building the Project
To build the project for production, run:
`bash
yarn build
`
This will create a dist` folder with the compiled assets.