Getting Started
The core of the project is OPEN SOURCE and is available publicly via NPM.
For more advanced features check the premium versions of the pkg on Brage Products
Installation
Prerequisites
- Node.js version 18 or higher.
For a more convenient use it is recommended to install the packages globally
$ npm i -g create-brage brage-js
$ yarn global add create-brage brage-js
$ pnpm add -g create-brage brage-js
$ bun add -g create-brage brage-js
This will install locally on your machine 2 commands, one to create an api project and another to create the api routes. Verify them with these commands.
$ create-brage -v
$ brage -v
Template creation
BRAGE works in a similar way to VITE, with a command to create the conditioned template for the tool to work and another command to generate the code necessary for the app.
Brage template command See docs
Choose a directory where you want to create your API project and run the following command.
$ create-brage
Routes Generation
BRAGE has a command to generate all the endpoints routed on the api with a command that reads the SQL content on the APP folder and creates the files on the SERVER folder.
Brage app command See docs
On the directory where the template was created run this command to generate the api routes.
$ brage