Starting with Godspeed's Node.js framework.
In this section, you will learn how to install the Godspeed framework using the command line interface (CLI) and how to either create a new project with the framework or integrate Godspeed into an existing project in NodeJS.
groovy
can be used.Pre-requisites:
- Node 18 and npm
- Git
- VS Code or any code editor
Demonstration
Installation
Godspeed CLI is the command center of a Godspeed project. It allows you to create & manage your Godspeed project. It is shipped via npm. You can go ahead and install it using the below command.
npm install -g @godspeedsystems/godspeed
Install VSCode Plugin
Please refer to this page to install Godspeed's VSCode plugin which will assist you with development.
Creating your project
You can create a blank project like this.
godspeed create <project_name>
You can create a project with pre-made examples as well. Check Hello World and Blog projects.
Building and running your project
You can build your project using the godspeed build
command, and clean using godspeed clean
. You can start your server on localhost or production machine using godspeed serve
. It will run in autowatch mode over your local file changes.
For any help
Try running in the below command line to see available Godspeed commands. Refer the full CLI spec for more information.
godspeed --help
,_, ╔════════════════════════════════════╗
(o,o) ║ Welcome to Godspeed ║
({___}) ║ World's First Meta Framework ║
" " ╚════════════════════════════════════╝
Usage: Godspeed CLI [options] [command]
CLI tool for godspeed framework.
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
create [options] <projectName> create a new godspeed project.
dev run godspeed development server.
clean clean the previous build.
gen-crud-api scans your prisma datasources and generate
CRUD APIs events and workflows
build build the godspeed project.
devops-plugin manage(add, remove, update) godspeed plugins
for devops.
plugin manage(add, remove, update) eventsource and
datasource plugins for godspeed.
prisma proxy to prisma commands with some add-on
commands to handle prisma datasources.
help [command] display help for command