Promptly is a Next.js application built with Tailwind CSS that lets you share and discover prompts across various industries like Career, Marketing, and Content. The app offers a modern UI with dark mode support, componentized navigation, and a dynamic prompt selection system powered by JSON files.
-
/app/
Contains the application code including:page.tsx
: The main page that renders the header, sidebar, and prompt content./components/
: Contains reusable components like Navigation and Sidebar./globals.css
: Global styling using Tailwind CSS./layout.tsx
: The layout configuration for Next.js.
-
/database/
Holds the prompt data organized into subfolders by category:- Career: Contains JSON files (e.g.,
jobDescription.json
,interviewPreparation.json
,resumeTips.json
). - Marketing: Contains JSON files (e.g.,
adCopy.json
,seoSuggestions.json
). - Content: Contains JSON files (e.g.,
blogOutlines.json
,socialMediaPosts.json
).
- Career: Contains JSON files (e.g.,
-
Clone the repository:
git clone https://github.com/JoshHargreaves/Promptly.git
-
Navigate to the project directory:
cd c:/Projects/Promptly
-
Install dependencies:
npm install
-
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.
-
Prompt Selection:
Use the sidebar to select a prompt by industry. On selection, the main content area updates to display a card with the prompt title and prompt data. -
Dark Mode:
Toggle dark mode using the button in the header. -
GitHub Repository:
A GitHub icon in the header links to the repository for more details or contributions.
-
Prompt Data:
Add or update prompt JSON files in the appropriate folder under/database
. Each file should include atitle
andpromptData
field. -
Styling:
Modify styles in/app/globals.css
using Tailwind CSS classes. -
Components:
Update the Navigation or Sidebar components in/app/components
to customize the UI.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
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.