wasp/README.md

123 lines
5.8 KiB
Markdown
Raw Normal View History

2020-03-23 15:47:08 +03:00
<p align=center>
<img height="80px" src="https://user-images.githubusercontent.com/1536647/77317442-78625700-6d0b-11ea-9822-0fb21e557e87.png"/>
</p>
2020-11-12 09:02:43 +03:00
<p align=center>
2023-03-17 18:19:49 +03:00
The fastest way to develop full-stack web apps with React & Node.js.
2020-11-12 09:02:43 +03:00
</p>
2020-01-31 17:18:09 +03:00
<br>
2020-11-12 09:02:43 +03:00
<p align=center>
<a href="https://github.com/wasp-lang/wasp/blob/main/LICENSE"><img alt="license" src="https://img.shields.io/github/license/wasp-lang/wasp"></a>
2023-04-12 16:52:52 +03:00
<a href="https://github.com/wasp-lang/wasp/releases/latest"><img alt="latest release" src="https://img.shields.io/github/v/release/wasp-lang/wasp"/></a>
2020-11-12 09:02:43 +03:00
<a href="https://discord.gg/rzdnErX"><img alt="discord" src="https://img.shields.io/discord/686873244791210014?label=chat%20@%20discord"/></a>
</p>
2020-01-31 17:18:09 +03:00
2020-11-12 09:02:43 +03:00
------
2020-01-31 17:18:09 +03:00
2023-04-12 16:52:52 +03:00
<p align="center">
<a href="https://wasp-lang.dev">Web page</a> | <a href="https://wasp-lang.dev/docs">Docs</a>
</p>
2020-03-23 15:47:08 +03:00
<br>
2023-04-12 16:52:52 +03:00
Wasp (**W**eb **A**pplication **Sp**ecification) is a Rails-like framework for React, Node.js and Prisma.
Build your app in a day and deploy it with a single CLI command!
### Why is Wasp awesome
- 🚀 **Quick start**: Due to its expressiveness, you can create and deploy a production-ready web app from scratch with very few lines of concise, consistent, declarative code.
- 😌 **No boilerplate**: By abstracting away complex full-stack features, there is less boilerplate code. That means less code to maintain and understand! It also means easier upgrades.
- 🔓 **No lock-in**: You can deploy Wasp app anywhere you like. There is no lock-in into specific providers, you have full control over the code (and can actually check it out in .wasp/ dir if you are interested ).
2021-02-09 21:57:31 +03:00
2023-04-12 16:52:52 +03:00
### Features
🔒 Full-stack Auth, 🖇️ RPC (Client <-> Server), 🚀 Simple Deployment, ⚙ Jobs, ✉️ Email Sending, 🛟 Full-stack Type Safety, ...
2020-09-22 14:52:16 +03:00
2023-04-12 16:52:52 +03:00
### Code example
Simple Wasp config file in which you describe the high-level details of your web app:
2020-01-31 17:18:09 +03:00
```js
2021-02-09 21:57:31 +03:00
// file: main.wasp
2020-01-31 17:18:09 +03:00
2023-04-12 16:52:52 +03:00
app todoApp {
title: "ToDo App", // visible in the browser tab
wasp: { version: "^0.10.0" },
auth: { // full-stack auth out-of-the-box
userEntity: User, methods: { email: {...} }
}
2020-01-31 17:18:09 +03:00
}
route RootRoute { path: "/", to: MainPage }
page MainPage {
2023-04-12 16:52:52 +03:00
authRequired: true, // Limit access to logged in users.
component: import Main from "@client/Main.tsx" // Your React code.
2020-01-31 17:18:09 +03:00
}
2020-09-22 14:52:16 +03:00
query getTasks {
2023-04-12 16:52:52 +03:00
fn: import { getTasks } from "@server/tasks.js", // Your Node.js code.
entities: [Task] // Automatic cache invalidation.
2020-01-31 17:18:09 +03:00
}
2023-04-12 16:52:52 +03:00
entity Task {=psl // Your Prisma data model.
2020-09-22 14:52:16 +03:00
id Int @id @default(autoincrement())
description String
isDone Boolean @default(false)
psl=}
2020-01-31 17:18:09 +03:00
```
2023-04-12 16:52:52 +03:00
The rest of the code you write in React / Node.js / Prisma and just reference it from the .wasp file.
2020-01-31 17:18:09 +03:00
2021-02-10 23:41:09 +03:00
:arrow_forward: Check out [TodoApp example](/examples/tutorials/TodoApp) for the complete code example. :arrow_backward:
2020-01-31 17:18:09 +03:00
2023-04-12 16:52:52 +03:00
### How it works
<img width="800px" src="https://user-images.githubusercontent.com/1536647/231472285-126679e5-ecce-4cbb-8579-eb3cd9ba95bf.png"/>
Given a simple .wasp configuration file that describes the high-level details of your web app, and .js(x)/.css/..., source files with your unique logic, Wasp compiler generates the full source of your web app in the target stack: front-end, back-end and deployment.
This unique approach is what makes Wasp "smart" and gives it its super powers!
2020-01-31 17:18:09 +03:00
For more information about Wasp, check [**docs**](https://wasp-lang.dev/docs).
2020-01-31 17:18:09 +03:00
2020-02-07 18:27:35 +03:00
# Get started
2021-02-09 21:57:31 +03:00
Run
```
curl -sSL https://get.wasp-lang.dev/installer.sh | sh
2021-02-09 21:57:31 +03:00
```
2023-04-12 16:52:52 +03:00
to install Wasp on OSX/Linux/WSL(Win). From there, just follow the instructions to run your first app in less than a minute!
2021-02-09 21:57:31 +03:00
2023-04-12 16:52:52 +03:00
For more details check out [the docs](https://wasp-lang.dev/docs).
2020-01-31 17:18:09 +03:00
# This repository
2020-02-20 16:32:03 +03:00
This is the main repo of the Wasp universe, containing core code (mostly `waspc` - Wasp compiler) and the supporting materials.
2020-01-31 17:18:09 +03:00
# Project status
2022-11-23 16:33:18 +03:00
Currently, Wasp is in beta, with most features flushed out and working well.
However, there are still a lot of improvements and additions that we have in mind for the future, and we are working on them constantly, so you can expect a lot of changes and improvements in the future.
2022-11-23 16:33:18 +03:00
As Wasp grows further, it should allow the development of web apps of increasing complexity!
2020-01-31 17:18:09 +03:00
2023-04-12 16:52:52 +03:00
While the idea is to support multiple web tech stacks in the future, right now we are focusing on the specific stack: React + react-query, NodeJS + ExpressJS, Prisma. We might yet change that as time goes on, taking trends into account, but for now, this is serving us well to develop Wasp.
2020-01-31 17:18:09 +03:00
# Contributing
2020-02-20 16:32:03 +03:00
Any way you want to contribute is a good way :)!
2020-11-05 20:44:03 +03:00
The best place to start is to check out [waspc/](waspc/), where you can find detailed steps for the first time contributors + technical details about the Wasp compiler.
2020-02-20 16:32:03 +03:00
2023-04-12 16:52:52 +03:00
Core of Wasp is built in Haskell, but there is also a lot of non-Haskell parts of Wasp, so you will certainly be able to find something for you!
2020-11-05 20:44:03 +03:00
Even if you don't plan to submit any code, just joining the discussion on discord [![Discord](https://img.shields.io/discord/686873244791210014?label=chat%20on%20discord)](https://discord.gg/rzdnErX) and giving your feedback is already great and helps a lot (motivates us and helps us figure out how to shape Wasp)!
2020-01-31 17:18:09 +03:00
2020-02-20 16:32:03 +03:00
You can also:
- :star: Star this repo to show your interest/support.
- :mailbox: Stay updated by subscribing to our [email list](https://wasp-lang.dev#signup).
- :speech_balloon: Join the discussion at https://github.com/wasp-lang/wasp/discussions .
2021-10-04 17:12:31 +03:00
# Careers
Check our [careers](https://wasp-lang.notion.site/Wasp-Careers-59fd1682c80d446f92be5fa65cc17672) page for a list of currently opened positions!
2023-05-19 17:59:10 +03:00
# Sponsors
<a href="https://github.com/michelwaechter"><img src="https://github.com/michelwaechter.png" width="50px" alt="michelwaechter" /></a> - Our first sponsor ever! Thanks so much Michel ❤️ , from the whole Wasp Team, for bravely going where nobody has been before :)!