Skip to content

ericzakariasson/cursor-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cursor Workshop

Introduction

Learn to build a web app with Cursor using Next.js, ShadCN, Postgres and MongoDB while exploring Cursor's productivity features.

What's in this repo?

  • prompts/: shared and version controlled prompts that can be used for your team
  • .cursorrules: specific Cursor instructions
  • sql/: small sql scripts for setting up everything related to postgres

Setup

  1. Install docker: Easiest setup is Docker Desktop or OrbStack (my personal preference)
  2. Install cursor: https://www.cursor.com/ or brew install --cask cursor
  3. Install dependencies with pnpm install (or remove lockfile and install with npm/yarn/bun)
  4. Start the postgres docker container with pnpm pg:up and make sure it's running
  5. Start the MongoDB docker container with pnpm mongo:up and make sure it's running
  6. Start the Next.js app with pnpm dev

Now, we're ready to start prompting our app.

Database Management

PostgreSQL

  • 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

MongoDB

  • 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

Other tools

Stay updated

I share learnings from the field, tips and tricks on anyblockers.com

Want to work together?

If you're looking to improve your products, automate processes, or implement AI solutions, let's talk.

About

cursor-workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published