This is a template to help you build your Wasp app with the Cursor IDE.
- Make sure you have Wasp installed:
curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s
- Run
wasp new -t cursor-template
to fetch the template (coming soon. until then, clone the repo). - Position yourself in the project directory:
cd cursor-template
- Run
wasp db start
to start the Postgres database. - In a new terminal, run
wasp db migrate-dev
to migrate the database. - Run
wasp start
to start the development server.
We've included a .cursorrules
file that provides context to the Cursor AI so that it can help you build your Wasp app. Make sure Cursor can access this file by going to preferences > cursor settings > general > include .cursorrules file
.
The .cursorrules
file is our attempt at fixing the common mistakes the AI assistants make while building a Wasp full-stack app, but if you find that the AI is still making mistakes, you can try to add more context to the .cursorrules
file, or within the Cursor settings.
Also, make sure you have the Wasp docs indexed in Cursor. You can do this by going to preferences > cursor settings > features > add new doc
. Then, you can include them in Cursor chat by using the @docs
keyword. This often improves the AI's ability to help you with Wasp-specific code.
If you get stuck, you can ask for help on the Wasp Discord. =}