Skip to content

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

MongoDB Atlas Setup (Prompt Diary)

Prompt Diary now stores entries in MongoDB through Next.js Route Handlers:

  • GET /api/prompts
  • POST /api/prompts
  • DELETE /api/prompts/:id

Quick Dial stores website entries in MongoDB through:

  • GET /api/quick-dials
  • POST /api/quick-dials
  • DELETE /api/quick-dials/:id

Create a local .env.local file with:

MONGODB_URI=mongodb+srv://<username>:<password>@<cluster-url>/?retryWrites=true&w=majority
MONGODB_DB=<database-name>
MONGODB_PROMPTS_COLLECTION=prompts
MONGODB_QUICK_DIALS_COLLECTION=quick_dials
ADMIN_DELETE_PASSWORD=<strong-admin-password>

Notes:

  • MONGODB_PROMPTS_COLLECTION is optional. It defaults to prompts.
  • MONGODB_QUICK_DIALS_COLLECTION is optional. It defaults to quick_dials.
  • ADMIN_DELETE_PASSWORD is required for delete operations; deletion returns unauthorized without the correct value.
  • Restart the dev server after changing env vars.
  • If you deploy (for example on Vercel), add the same env vars in your deployment settings.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

About

A simple quick dialer app that consists of sections where you can arrange your commonly used prompts and bookmark essential tools that you use frequently as a dev to speed up your development process

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages