Create a Project
One easy way to manage Custom Functions is through HarperDB Studio. You can read more about managing Custom Functions through the HarperDB Studio here.
To manually create a project, you have three options:
- 1.use the add_custom_function_project operationThis operation creates a new project folder, and populates it with templates for the routes, helpers, and static subfolders.
{
"operation": "add_custom_function_project",
"project": "dogs"
}
- 1.clone our public gitHub project templateThis requires a local installation. Remove the .git directory for a clean slate of git history.
> git clone https://github.com/HarperDB/harperdb-custom-functions-template.git ~/hdb/custom_functions/dogs
- 1.create a project folder in your Custom Functions root directory and initializeThis requires a local installation.
> mkdir ~/hdb/custom_functions/dogs
> npm init
Last modified 1mo ago