A programming language that understands what a web app is.
Go to file
Yanis Zafirópulos bf160e23bb
Generic templates and Code of Conduct (#131)
* added code_of_conduct

* added generic issue templates (for bugs & feature requests)

* added generic PR template

* Update CODE_OF_CONDUCT.md

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2020-11-11 16:34:29 +01:00
.github Generic templates and Code of Conduct (#131) 2020-11-11 16:34:29 +01:00
examples Removed redundant readonly attribute from todo app example. 2020-11-03 11:25:36 +01:00
waspc Made PATH warning in install script more prominent. 2020-11-10 14:30:20 +01:00
.gitattributes Added coloring of .wasp files on Github. 2020-02-03 17:06:04 +01:00
.travis.yml Fixed travis.yml to trigger builds for tags. 2020-10-28 18:34:34 +01:00
appveyor.yml CI now builds only master branch and PRs. 2020-09-23 15:47:52 +02:00
CODE_OF_CONDUCT.md Generic templates and Code of Conduct (#131) 2020-11-11 16:34:29 +01:00
CONTRIBUTING.md Create CONTRIBUTING.md 2020-11-11 16:11:21 +01:00
LICENSE Create LICENSE 2020-02-06 19:29:17 +01:00
README.md Minor fixes + Copy editing (#125) 2020-11-05 18:44:03 +01:00

A programming language that understands what a web app is.


Discord Build Status Build Status


Wasp (Web Application Specification Language) is an extensible DSL (domain-specific language) for building modern web apps with less code.

Concepts such as app, page, user, login, frontend, production, etc. are baked into the language, bringing a new level of expressiveness and allowing you to get more work done with fewer lines of code.

NOTE: Wasp is still in alpha, meaning it has bugs, and many critical features are still missing and it is still changing a lot!

// todoApp.wasp:

app TodoApp {
  title: "ToDo app",
  favicon: "./todo-logo.png"
}

route "/" -> page Main
page Main {
    component: import Main from "@ext/pages/Main"
}

query getTasks {
  fn: import { getTasks } from "@ext/queries.js"
}

entity Task {=psl
    id          Int     @id @default(autoincrement())
    description String
    isDone      Boolean @default(false)
psl=}

Source files (.wasp, .js(x), .css, ...) are compiled (transpiled) by waspc (Wasp compiler) into the web technology stack of your choice (e.g. React + Redux + ExpressJS + ...).

▶️ Check out TodoApp example for complete code example. ◀️

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.
  • Flexible: When you need more control than Wasp offers, you can write code in existing technologies such as js/html/css/... and combine it with Wasp code!
  • No lock-in: If Wasp becomes too limiting for you, simply eject and continue with the generated source code, which is human-readable.

For more information about Wasp, check docs.

Get started

Check out the docs.

This repository

This is the main repo of the Wasp universe, containing core code (mostly waspc - Wasp compiler) and the supporting materials.

Project status

We are still very early (pre-alpha). Specifically, we are developing waspc (Wasp compiler) and also designing language as we go.

Currently, waspc is in a state where the main parts are there (code analysis and generation) and we are successfully generating code.

The language itself supports a narrow set of features for now, not enough for serious web app development, but we believe it is a good basis to build upon.
The next step is to expand the language (and compiler) so it can serve the role of a smart code generator - it will still not have enough features to keep you from ejecting for a very long time, but it will be enough to give you a quick start.
Finally, as it grows further, it should allow the development of web apps of increasing complexity without the need to eject!

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, taking trends into account, but for now, this is serving us well for the purpose of developing compiler and language.

Contributing

Any way you want to contribute is a good way :)!

The best place to start is to check out waspc/, where you can find detailed steps for the first time contributors + technical details about the Wasp compiler.

Even if you don't plan to submit any code, just joining the discussion on discord Discord and giving your feedback is already great and helps a lot (motivates us and helps us figure out how to shape Wasp)!

You can also:

  • Star this repo to show your interest/support.
  • 📫 Stay updated by subscribing to our email list.

FAQ

Check out https://wasp-lang.dev/#faq.