Promptz is the ultimate prompting hub for Amazon Q Developer, designed to help you discover, create, and perfect your prompts for every step of the software development lifecycle.
- Create an AWS account if you do not already have one and log in.
- Configure AWS for local development with Amplify
Before you begin, make sure you have the following installed:
- Node.js v14.x or later
- npm v6.14.4 or later
- git v2.14.1 or later
Promptz is built with AWS Amplify Gen 2 and next.js.
git clone https://github.com/cremich/promptz.git
cd promptz
Install all required dependencies via npm i
.
To deploy the app and make backend updates, Amplify requires AWS credentials to deploy backend updates from your local machine. Follow the official Amplify documentation to configure AWS for local development.
Now that the repository has been setup, deploy the Amplify App in your own AWS account by running
npm run sandbox
This command will create a sandbox environment that provides an isolated development space to rapidly build, test, and iterate on. The sandbox environment is fully functional. However the sandbox configuration is slightly different from the production configuration:
- The sandbox environment does not configure social idPs for Amazon Cognito.
- Amazon Cognito is configured to send verification e-mails instead of using Amazon SES with the official [email protected] email adress.
- DynamoDB Tables and Amazon Cognito Userpools have turned off deletion protection to not cause stale resources in your AWS accont once you delete the sandbox environment.
- DynamoDB Tables have no point-in-time-recovery enabled.
- AWS Appsync is configured without X-Ray and logging to Amazon Cloudwatch.
⚠️ Your deployment will fail if you if you create your sandbox environment with the amplify default approach callingnpx ampx sandbox
.
npm run sandbox
will set an environment variablePROMPTZ_ENV
that is evaluated when provisioning the backend resources. Only if this variable is set tosandbox
, certain configurations like Amazon SES, Social Provicer idPs are deactivated.
While you are waiting for your app to deploy (~5 mins). Learn about the project structure
amplify/
Contains Amplify backend configuration/app
: Next.js app router pages and layouts/components
: React components used throughout the application/contexts
: React context providers/hooks
: Custom React hooks/models
: Data models and types/public
: Static assets/utils
: Utility functions and helpers
When the build completes, visit the newly deployed branch by selecting "View deployed URL".
Run npm run dev
to start a local development server using the amplify configuration downloaded in step 4.
After starting the development server, open your browser and navigate to http://localhost:3000
.
We welcome contributions to Promptz! Please see our Contributing Guidelines for more information on how to get started.
This project is licensed under the MIT License. See the LICENSE file for details.
To learn more about the technologies used in this project, check out the following resources: