
Wasp Has a Free API That Builds Full-Stack React Apps With 10x Less Code
Wasp is the Rails for React. Define your data model, auth, and API in a simple DSL — Wasp generates the full-stack React + Node.js app. What Is Wasp? Wasp is a full-stack framework that uses a simple configuration language alongside React and Node.js. You describe WHAT you want, Wasp generates HOW. The Wasp File // main.wasp app TodoApp { wasp: { version: "^0.14.0" }, title: "My Todo App", auth: { userEntity: User, methods: { email: {} }, onAuthFailedRedirectTo: "/login" } } entity User {=psl id Int @id @default(autoincrement()) email String @unique tasks Task[] psl=} entity Task {=psl id Int @id @default(autoincrement()) description String isDone Boolean @default(false) user User @relation(fields: [userId], references: [id]) userId Int psl=} route RootRoute { path: "/", to: MainPage } page MainPage { authRequired: true, component: import { MainPage } from "@src/pages/Main" } query getTasks { fn: import { getTasks } from "@src/queries", entities: [Task] } action createTask { fn: import
Continue reading on Dev.to React
Opens in a new tab

