wasp/examples/websockets-realtime-voting
2024-10-10 17:05:02 +02:00
..
migrations Fix websockets for deployment (#2188) 2024-07-16 22:07:29 +02:00
public Migrated examples/websockets-realtime-voting to 0.12. (#1771) 2024-02-19 10:27:31 +01:00
src Bumps react-router-dom to v6 (#2256) 2024-09-30 13:21:46 +02:00
.gitignore Again updated default .gitignore: removed !.env.client. (#2090) 2024-06-10 20:37:40 +02:00
.waspignore Add latest changes to examples updated to 0.12.0 (#1816) 2024-02-26 15:20:52 +01:00
.wasproot Add websockets example app (#1510) 2023-10-16 16:14:57 +02:00
fly-client.toml Fix websockets for deployment (#2188) 2024-07-16 22:07:29 +02:00
fly-server.toml Fix websockets for deployment (#2188) 2024-07-16 22:07:29 +02:00
image.png Add websockets example app (#1510) 2023-10-16 16:14:57 +02:00
main.wasp Bumps Wasp to 0.15.0 (#2321) 2024-10-04 13:53:34 +02:00
package-lock.json Update migration doc for 0.15 and migrate apps (#2338) 2024-10-10 17:05:02 +02:00
package.json Update migration doc for 0.15 and migrate apps (#2338) 2024-10-10 17:05:02 +02:00
postcss.config.cjs Add websockets example app (#1510) 2023-10-16 16:14:57 +02:00
README.md update websockets example README 2024-06-24 18:20:14 +02:00
schema.prisma Fix websockets for deployment (#2188) 2024-07-16 22:07:29 +02:00
tailwind.config.cjs Moves resolveProjectPath to wasp/dev (#1759) 2024-02-13 18:27:26 +01:00
tsconfig.json Migrates websockets app example to 0.14.0 (#2154) 2024-07-08 18:04:29 +02:00
vite.config.ts Migrated examples/websockets-realtime-voting to 0.12. (#1771) 2024-02-19 10:27:31 +01:00

Using Websockets in Wasp

This is an example real-time, Websockets app built with Wasp in TypeScript to showcase the ease of use and integration of Websockets in Wasp. It's really NEAT!

It is also a part of a tutorial, How to build a real-time voting app with WebSockets, React, & Typescript.

wasp websockets app

You can try out a deployed version of the app here: https://websockets-voting-client.fly.dev/

This app also includes Wasp's integrated auth and a voting system (again, neat!).

Running the app

If you get stuck at any point, feel free to join our Discord server and ask questions there. We are happy to help!

First, clone the this repo:

git clone https://github.com/wasp-lang/wasp.git

Make sure you've downloaded and installed Wasp

curl -sSL https://get.wasp-lang.dev/installer.sh | sh

Then navigate to the project directory

cd examples/websockets-realtime-voting
wasp db migrate-dev

start the app! (this also installs all dependencies)

wasp start

Check out the src/server/websocket.ts and src/client/pages/MainPage.tsx to see how Websockets are used in Wasp.

Need Help?

Read the tutorial: How to build a real-time voting app with WebSockets, React, & Typescript.

Wasp Docs: https://wasp-lang.dev/docs

Feel free to join our Discord server and ask questions there. We are happy to help!