-
Notifications
You must be signed in to change notification settings - Fork 0
Panda Manager
panda-manager
is Panda Server's utility tool, used to manage the server, its dependencies and providing information about version number, directory path and more. It is rather extensive and includes multiple commands and sub-commands. This page aims to provide a structured overview of each feature. You can use the table below or use the common search feature CTRL+F to look for a particular command.
Alias: -v
Returns the version number of the Panda Server
Sub-commands: N/A
Alias: -s
Launches the server. Default host is "localhost" on port 8080.
Example: panda-module --start --browser firefox --port 8080
Sub-commands:
- -h, --help: This returns the help page for --start. It provides an overview of all available sub-commands.
-
-b, --browser: Requires the command for opening a chosen browser. Example:
firefox
. If the browser's command is invalid, the script will throw an error. - -p, --port: Requires an integer between 1 024 and 65 536. This will open the browser from above with the specified port number, as well as running the Panda Server on the same port.
-
-l, --live-reload: This features requires Nodemon globally installed. If Nodemon is installed locally, this command will not work. The same effect can; however, be achieved with the following commands:
To set up Nodemon locally, head over to Getting Started and select your operating system. Click here to learn more about Nodemon.
source venv/bin/activate npx nodemon serve.py
Alias: -d Downloads missing project dependencies. This command generally is not needed unless specified by other commands. It takes arguments as the name of a file, module or package to download or install.
Example: panda-module --download server.py
Arguments:
- server.py: This file is the main file in the project. It is therefore required. Use this argument to download server.py from remote repository.
- pandahttp: PandaHTTP is a custom module that helps keeping the code organized. It handles HTTP requests and manages databases. Use this argument to create the module directory and download all files from remote repository.
- modules: This argument installs all Python dependencies using pip. It requires that requirements.txt exists in the root folder. This file contains the name of all dependencies and their version.