Learn to build a web app with Cursor using Next.js, ShadCN, Postgres and MongoDB while exploring Cursor's productivity features.
prompts/
: shared and version controlled prompts that can be used for your team.cursorrules
: specific Cursor instructionssql/
: small sql scripts for setting up everything related to postgres
- Install docker: Easiest setup is Docker Desktop or OrbStack (my personal preference)
- Install cursor: https://www.cursor.com/ or
brew install --cask cursor
- Install dependencies with
pnpm install
(or remove lockfile and install with npm/yarn/bun) - Start the postgres docker container with
pnpm pg:up
and make sure it's running - Start the MongoDB docker container with
pnpm mongo:up
and make sure it's running - Start the Next.js app with
pnpm dev
Now, we're ready to start prompting our app.
- Start PostgreSQL:
pnpm pg:up
- Stop PostgreSQL:
pnpm pg:down
- Reset PostgreSQL:
pnpm pg:reset
- Check PostgreSQL status:
pnpm pg:ping
- Open PostgreSQL shell:
pnpm psql
- Run SQL tables script:
pnpm pg:tables
- Start MongoDB:
pnpm mongo:up
- Stop MongoDB:
pnpm mongo:down
- Reset MongoDB:
pnpm mongo:reset
- Check MongoDB status:
pnpm mongo:ping
- Open MongoDB shell:
pnpm mongo
- warp.dev terminal: terminal with built in completion capabilities
- LLM cli: cli tool to call LLMs directly in the terminal
- Can be used together with this snippet to automatically generate commit messages
- Ollama: run LLMs locally (cli)
- LM Studio: run and visualise LLMs locally (gui)
- Ellipsis: automated code review in GitHub PRs
- Cursor Directory: a collection of prompts and .cursorrules files
- Cursor Lens: Cursor analytics
I share learnings from the field, tips and tricks on anyblockers.com
If you're looking to improve your products, automate processes, or implement AI solutions, let's talk.