Skip to content

dayvidwhy/planner

Repository files navigation

Planner

Plan anything collaboratively with others.

GitHub last commit GitHub issues GitHub pull requests GitHub

Application leverages:

  • Nextjs 14 with RSC for the front and back-end
  • Drizzle to manage an SQLite database
  • Nextauth for authentication and authorization
  • UI components are provided via shadcn-ui

Install

Clone the repository and start development mode.

git clone git@github.com:dayvidwhy/planner.git
cd planner
npm i
npx drizzle-kit generate:sqlite
npx drizzle-kit push:sqlite
npm run dev

Project uses NVM for node version.

# Set node to 21
nvm use

Working with the UI library

Components are provided by shadcn-ui. Components are stored under ./components/ and more can be installed with:

npx shadcn-ui@latest add

Follow the prompts.

Database

Project is using SQLite via better-sqlite3 interacted with via Drizzle as the adapter.

Some useful commands:

# Generate the database
npx drizzle-kit generate:sqlite

# Push changes to the database
npx drizzle-kit push:sqlite

# Inspect the database with Drizzle kit studio
npx drizzle-kit studio

# If you're starting fresh, run generate and push to get going
npx drizzle-kit generate:sqlite
npx drizzle-kit push:sqlite

View database files in ./drizzle/, SQLite database is stored at ./sqlite.db.

About

📖 Plan anything collaboratively with others. Uses Next.js, Drizzle, SQLite and Authjs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published