Green Dot Quick Start
Security and DX focused NodeJs backend framework. See home page for a quick presentation tour.
Create a new project
Section titled “Create a new project”- Run this command and follow the prompt:
npx green_dot@latest generate
- Run the same command again to generate API services, Database Models, Schedules…and so on.
Project Structure
Section titled “Project Structure”Your generated project will follow this structure:
📁 ./├── 📁 myDb1/ # Each DB as its own folder│ ├── 📁 models/│ │ ├── [modelName].dao.ts # Security config for the model│ │ └── [modelName].model.ts # Model definition file│ └── ⚙️ gd.db.config.ts # DB config file specific to this database├── 📁 myDb2/│├── 📁 myApp1/ # Each APP as its own folder│ ├── 📁 myModule1/ # A custom module; structure is flexible│ │ ├── [serviceName].testFlow.ts # api tests for your module│ │ └── [serviceName].svc.ts # API route definition for the module│ ├── ⚙️ gd.apiTests.config.ts # Config file for automated API tests (BETA)│ └── ⚙️ gd.app.config.ts # App config file specific to this application├── 📁 myApp2/│└── ⚙️ gd.config.ts # Global config (all roles, permissions, etc.)
IDE Integration
Section titled “IDE Integration”- Install the
green dot VSCode Extension
from the IDE or the marketplace - Use
gd_
snippets in any TypeScript file for faster development - Hover over any green_dot property or function to see documentation
Available Plugins
Section titled “Available Plugins”When you first generate your project, you can install these plugins:
GDmanagedLogin
: Managed JWT login with email/password updatesGDapiKeyAuthentication
: API Key authenticationGDdoubleAuthentication
: 2FA, Pin Code, or biometric authentication
Need Help?
Section titled “Need Help?”- Visit our GitHub Repository
- Open an issue for bug reports or feature requests
- Submit a Pull Request for code contributions