Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PR-Pilot-AI/rapid-prototyper
A template repo for rapid prototyping with PR Pilot
https://github.com/PR-Pilot-AI/rapid-prototyper
Last synced: 2 months ago
JSON representation
A template repo for rapid prototyping with PR Pilot
- Host: GitHub
- URL: https://github.com/PR-Pilot-AI/rapid-prototyper
- Owner: PR-Pilot-AI
- License: mit
- Created: 2024-08-27T00:23:41.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T18:45:05.000Z (3 months ago)
- Last Synced: 2024-08-29T20:58:07.683Z (3 months ago)
- Language: Jinja
- Size: 248 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rapid Prototyper
This project enables **AI-assisted rapid prototyping** of web applications,
allowing developers to explore and iterate on ideas quickly to evaluate its potential for success.## π The Approach
The approach is inspired by [Pieter Levels](https://x.com/levelsio) and his book
[The Indie Maker Handbook](https://readmake.com/) and it goes like this:1. **Come up with an idea**: Start with a simple idea that solves a problem you have.
2. **Build a prototype**: Use the PR Pilot platform to build a prototype quickly.
3. **Ship it**: Deploy the prototype to get feedback from users.
4. **Evaluate**: Use analytics to understand how users are interacting with your app.
5. **Grow**: Make changes based on feedback and repeat the process to grow your app.
6. **Monetize**: Once you have a product people love, find ways to monetize it.This project is an opinionated implementation of this approach using technologies / libraries
that are ideal for rapid prototyping.## π οΈ How to Use
The entire process is **AI-assisted using the [PR Pilot platform](https://www.pr-pilot.ai)**, letting you
develop your prototype using natural language prompts.### π 0 - Setup
For this project, you need to have the following:
- [Docker](https://www.docker.com/)
- [PR Pilot CLI](https://github.com/PR-Pilot-AI/pr-pilot-cli)
- A [Vercel](https://vercel.com/) account for deploymentFirst, [create a new repository from this template](https://github.com/new?template_name=rapid-prototyper&template_owner=PR-Pilot-AI).
Then, you can start the app with `docker-compose up` and access it at [http://localhost:8000](http://localhost:8000).
At this point, it is just an empty placeholder.### π‘ 1 - Idea
First, you need to **clearly define the idea** you'd like to explore, the problem
you're trying to solve, and the scope of the prototype. For example:```shell
β pilot run initialize
> Short idea description: A website that generates / plays background noise for programmers, customizable with sliders and knobs
> Problem statement: As a programmer, I don't want to listen to music because it is too distracting
> Scope and limitations: Noise should be generated in the browser. Parameters should be adjustable with sliders
The project has been initialized with the following changes:
1 Updated .pilot-hints.md: Added the user story, problem statement, and scope of the prototype.
2 Updated README.md: Included the project details, idea, problem statement, and scope.
3 Removed prompts/initialize.md.jinja2: Deleted the initialization prompt file.
4 Updated index.html.jinja2: Implemented a simple background noise generator with adjustable
volume and frequency sliders.
The initial implementation includes a basic UI with sliders for volume and frequency, and
buttons to play and stop the noise. The noise generation is handled using the Web Audio API.
This setup provides a starting point for further development and customization of the background
noise generator.
```This will set up the project with the necessary details and an initial implementation.
You can review the changes in the pull request the assistant creates for you:```shell
β pilot pr
β Branch create-noise-generator has PR #1
```### π 2 - Build & Iterate
Once your project is initialized, you can **use PR Pilot to make changes** to the project:```shell
β git:(main) pilot task "The noise is very simple. Make it more complex and add sliders so I can adjust the sound"
β Read files: templates/index.html.jinja2 ,app.py
β Write content to templates/index.html.jinja2
β Enhance noise complexity and add sliders for customization
β Push branch enhance-noise-generator
β Create PR #2 for branch enhance-noise-generator
I have enhanced the noise complexity and added sliders for customization. The updated
index.html.jinja2 now includes options for white, pink, and brown noise, along with sliders to
adjust the volume and frequency.
You can now visit the homepage to experience the improved noise generator with more
customization options.
β Pull latest changes from enhance-noise-generator
β git:(enhance-noise-generator)
```Check out the [PR Pilot documentation](https://docs.pr-pilot.ai) to learn more about how to use the platform for your projects.
### π’ 3 - Ship
To find out if people actually want to use what you're building and get feedback, you need to ship it.
Vercel makes it super easy to **deploy your projects with a single command**:```shell
β code-noise git:(main) vercel
Vercel CLI 34.3.1
? Set up and deploy β~/code/code-noiseβ? yes
? Which scope do you want to deploy to? mlamina's projects
? Link to existing project? no
? Whatβs your projectβs name? code-noise
? In which directory is your code located? ./
π Linked to mlaminas-projects/code-noise (created .vercel and added it to .gitignore)
π Inspect: https://vercel.com/mlaminas-projects/code-noise/GU1kuZt6GNvXaiHGCxtjFVUpTTFn [2s]
β Production: https://code-noise-2qtes1ael-mlaminas-projects.vercel.app [2s]
π Deployed to production. Run `vercel --prod` to overwrite later (https://vercel.link/2F).
π‘ To change the domain or build command, go to https://vercel.com/mlaminas-projects/code-noise/settings
```Your app is now **LIVE**! Share this link with your potential users and collect feedback right away!
### π 4 - Grow & Monetize
Spreading the word on social media, forums, and communities can help you grow your user base,
but is very time-consuming. Let PR Pilot do the heavy lifting for you.Just run: `pilot run marketing-materials`
PR Pilot will ask you a few questions and **generate marketing materials tailored to different platforms and audiences**:
```shell
β pilot run marketing-materials
> Project url: https://code-noise.vercel.app
> Maker name: Marco Lamina
> Why i built it: I'm sensitive to sound and needed the an easy way to create the perfect ambience for doing deep work
β Write content to marketing/reddit.md
β Add Reddit marketing materials
β Write content to marketing/twitter.md
β Add Twitter marketing materials
β Write content to marketing/blog_post.md
β Add blog post marketing material
β Write content to marketing/newsletter.md
β Add newsletter marketing material
β Write content to marketing/hackernews.md
β Add HackerNews marketing material
β Write content to marketing/linkedin.md
β Add LinkedIn marketing material
! Connection was interrupted, reconnecting...
β Write content to marketing/devto.md
β Add Dev.to marketing material
β Write content to marketing/producthunt.md
β Add Product Hunt marketing material
β Push branch create-tailored
Marketing materials created.
```You can adjust the the prompt in `prompts/marketing-materials.md.jinja2` to customize the marketing materials generated.
### π Monitor & Evaluate
Now that your app is live, you'll want to know more about how users are interacting with it.
Vercel provides **analytics and insights to help you understand your users** better.
Just [enable Analytics](https://vercel.com/d?to=%2F%5Bteam%5D%2F%5Bproject%5D%2Fanalytics&title=Open+Web+Analytics)
in your dashboard to get started.![Vercel Analytics Screenshot](analytics_screenshot.png)
![Vercel Analytics Screenshot](analytics_screenshot2.png)## π§° Technologies Used
We chose the following technologies for this project:- **FastAPI**: A modern, fast (high-performance), web framework for building APIs with Python 3.8+.
- **Jinja2**: A full-featured template engine for Python, used for rendering HTML templates.
- **BulmaCSS**: A modern CSS framework based on Flexbox (via CDN).
- **jQuery**: A fast, small, and feature-rich JavaScript library (via CDN).This stack was chosen with the following goals in mind:
- **Speed**: We chose technologies that allow for rapid development and iteration.
- **Flexibility**: All of the above libraries are simple, flexible and easy to use in combination.
- **Simplicity**: You shouldn't have to worry about complex configurations or setups.
- **Popularity**: These technologies are widely used and have a large community, making it easier to find help and resources.## ποΈ Project Structure
```
.
βββ app.py # The main FastAPI application
βββ templates/ # Directory for Jinja2 templates
β βββ base.html.jinja2 # Base template
β βββ index.html.jinja2 # Index template
βββ prompts/ # Pre-defined prompts for PR Pilot (Use 'pilot run' to execute)
βββ docker-compose.yml # Docker Compose configuration file
βββ Dockerfile # Dockerfile for building the app's container image
βββ requirements.txt # Python dependencies
βββ LICENSE # License file
βββ README.md # Project README file
```## π€ Contributing
Contributions are welcome! Please open an issue or submit a pull request for any changes.## π License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.