@mrapi/dal v1.1.3
mrapi is a framework for rapid development of API or DAL applications.
Overview
Hello! Thank you for checking out Mrapi! Mrapi is a lightweight, out-of-the-box, nodejs server framework, Born for construction Use Node.js and Koa for better enterprise frameworks and applications
Born to build enterprise-level nodejs applications faster
Core features
- Easier to use
- Automation
- Flexible and Extendible
- Highly performant
- TypeScript Support
Let's start!
Requirements
Node:
- NodeJS >= 10.x
- NPM >= 6.x
Database:
- MySQL >= 5.6
- PostgreSQL >= 10
- SQLite >= 3
Quick start
Frist step:create a mrapi project
As a first step, create a project directory and navigate into it:
$ mkdir hello-mrapi
$ cd hello-mrapi
Next, run the following command: will automatically create a folder and install dependencies
$ yarn create-mrapi-app my-project
# or
$ npx create-mrapi-app my-project
# or
$ pnpx create-mrapi-app my-project
And now, the project has been generated!
Second step: Modify the configuration file
View configuration:config/mrapi.config.js
Third step: customize mrapi server
such as:
# one.prisma
model User {
email String @unique
id Int @default(autoincrement()) @id
name String?
Post Post[]
}
model Post {
authorId Int?
content String?
id Int @default(autoincrement()) @id
published Boolean @default(false)
title String
User User? @relation(fields: [authorId], references: [id])
}
Fourth, Run the project
First compile the dependency file
npx mrapi generate --name one
Run in developer environment
npx ts-node-dev --respawn --transpile-only ./src/app.ts
Documentation
You can find the Mrapi documentation on the website.
License
Licensed under MIT.
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago