Using CLI
The npx nanoctl simplifies the setup of new Nano Service projects, enabling developers to focus on writing backend logic rather than configuring boilerplate code.
Quick Project Initialization
Run the following command to create a new project:
Interactive Setup
The CLI will guide you step by step:
Choose a Template
Select from the available templates: HTTP API (A pre-configured Node.js + Express project) or ** Scheduled Jobs** (CRON-style workflows)
Project Name
Provide a name for your project.
Setup Complete
The project will be cloned into the selected directory with all dependencies ready to install.
Example:
Run the command
Follow the interactive prompts
Install dependencies and start coding
Create env
Create .env.local
file in the root directory with the following structure:
Replace [PROJECT_PATH]
with the real project path