logo
Blazekit
Fuel
your
project
from
a
single
spark
schema.blaze
Scroll to know more
Create a configuration
1 Install blazekit by running
bash

npm install blazekit
2 Now auto-generate a config using
bash

npx blazekit --create-config
This creates a `.blazerc` config file.
.blazerc

{
  "database": "prisma",
  "databaseName": "database_name",
  "typesOutputDir": "src/types",
  "controllersOutputDir": "src/controllers",
  "apiRoutesOutputDir": "src/app/api"
}
It all starts with
a single schema.blaze
3 Create all your models in a single schema.blaze file
schema.blaze

model User {
  name: string
  email: string
  age: number
}
Normally you would create it in src/blaze/schema.blaze in a NextJS app.
Lets compile it!
4 We compile this schema using the following command
bash

npx blazekit schema.blaze
And bam! Thats it!!!
What after compiling?
schema.blaze

model User {
  name: string
  email: string
  age: number
}
model Programmer {
  name: string
  email: string
  age: number
  swag: string
}
>
src/controllers/
User.controller.ts
Programmer.controller.ts

src/types/
User.ts
Programmer.ts

Ready to build faster?

Hit the ground running — check out the docs!

View Docs