Skip to content

smart-chain-fr/xrpl-workshop-no-code-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

image

image

ARKAN AI No-Code Workshop Documentation

This repository contains the documentation for the AI Code Workshop held on February 18, 2025 at XRPL by ARKAN. During this session, we explored no-code AI development tools, best practices in prompt engineering, and modern web development techniques built on a robust tech stack. The formation was focused mainly on the Bolt no-code tool.


Recommended Tech Stack

For rapid and efficient development, we recommend the following stack:

  • TypeScript: For type-safe JavaScript development.
  • React: To build dynamic user interfaces.
  • Tailwind CSS: For a utility-first approach to styling.
  • Supabase: For backend services including authentication, database, and storage.
  • Tavily: To streamline development further.

This stack enables you to build scalable, high-performance web applications while keeping a clear separation between design, logic, and data management.


Bolt Prompt Engineering: Do's and Don'ts

Effective prompt engineering is essential when using Bolt. Below is a detailed table with examples to help you craft precise and actionable prompts:

Do Don't
Use clear and concise language that outlines your requirements explicitly. Provide vague or generic instructions that leave too much open-ended.
Specify the technology stack and any design or functional constraints (e.g., "Create a React component with TypeScript and Tailwind CSS styling"). Assume the AI will infer the needed details without guidance.
Break down complex tasks into smaller, step-by-step instructions. Combine multiple unrelated tasks into a single prompt.
Include examples, context, and expected output formats to guide the response. Skip important context that could lead to irrelevant or incomplete outputs.
Request iterative improvements (e.g., "Provide an initial version and then update it with error handling"). Expect a one-shot, complete solution without any revision process.

Good and Bad Prompts

Component Creation

Bad Prompt:

"Just create a basic user list without handling loading states, errors, or responsive design."

Good Prompt:

"Build a reusable React component in TypeScript that retrieves and displays a paginated list of user profiles from Supabase. The component should use a responsive grid layout powered by Tailwind CSS, include loading and error states, and offer dynamic filtering based on user input."

API Integration

Bad Prompt:

"Simply show a basic API connection without any error handling or context."

Good Prompt:

"Develop a comprehensive example of integrating a third-party REST API into a React application using hooks. The solution should include detailed error handling, loading state management, a retry mechanism, and clear inline comments explaining each integration step."

State Management

Bad Prompt:

"Offer a minimal code snippet that lacks handling for asynchronous operations or scalability considerations."

Good Prompt:

"Construct an example using the React Context API combined with a reducer to manage global state. Provide a detailed implementation that includes asynchronous actions, state update logging, and comprehensive comments for future scalability."

Authentication Flow

Bad Prompt:

"Only write minimal authentication code without addressing session management or responsive UI feedback."

Good Prompt:

"Design a full authentication flow using Supabase in a React application. Include user registration, login, session persistence, and error handling. Ensure the UI provides responsive feedback using Tailwind CSS, and separate the authentication logic from the presentation layer."

Deployment Instructions

Bad Prompt:

"Just ask for a brief explanation of the deployment process without any specific, actionable instructions."

Good Prompt:

"Draft a detailed guide for deploying a React application on Netlify. Include step-by-step instructions for setting build commands, configuring environment variables for Supabase, setting up continuous integration, and troubleshooting common deployment issues."

Login Page

Bad Prompt:

"Create a login page with an email and password field."

Good Prompt:

"Design a clean login page with a blue/purple gradient background, a centered card with a subtle shadow, an email field with an icon, a password field with a show/hide option, and a blue CTA button labeled ‘Log in’ with a glowing hover effect."

Sign-Up Page

Bad Prompt:

"Make a sign-up page."

Good Prompt:

"Generate a modern sign-up page with three input fields (Name, Email, Password), a checkbox for ‘Accept terms and conditions,’ and a CTA button labeled ‘Create Account’ with a ripple effect on click."

Navigation Bar (Navbar)

Bad Prompt:

"Add a navigation bar."

Good Prompt:

"Add a fixed navbar at the top of the screen, including a logo on the left, a centered menu with three links (‘Home,’ ‘About,’ ‘Contact’), and a ‘Log in’ button on the right styled as a primary button."

Landing Page Hero Section

Bad Prompt:

"Make a landing page."

Good Prompt:

"Create a full-screen Hero Section with a blurred background image, a white title saying ‘Welcome to TravelMate,’ a semi-transparent subtitle, and a rounded ‘Explore’ CTA button with a scale-up hover animation."

Card-Based Offer Display

Bad Prompt:

"Add cards with offers."

Good Prompt:

"Create a responsive grid of offer cards, each containing a top image, a bold title, a short description, and a ‘View More’ button with an elevation hover effect."

Advanced Search Form

Bad Prompt:

"Add a search bar."

Good Prompt:

"Add a centered search bar with a wide input field, a clickable magnifying glass icon, and a filter button on the right that opens a dropdown menu to select the destination and trip duration."

Automatic Scroll to Top After Page Change

Bad Prompt:

"Add a button to scroll up."

Good Prompt:

"Implement an automatic scroll-to-top feature when a user changes pages, with a smooth and gradual transition for better navigation comfort."

Dark Mode / Light Mode Toggle

Bad Prompt:

"Add a dark mode."

Good Prompt:

"Add a toggle switch in the top-right corner to switch between light and dark mode, with a smooth transition and seamless color changes across the interface."

Interactive Data Tables (Dashboard Data Table)

Bad Prompt:

"Add a data table."

Good Prompt:

"Create a responsive table with pagination, sortable columns, a top filter system, and a row highlight effect on hover."

Customer Testimonial Section

Bad Prompt:

"Add a customer review section."

Good Prompt:

"Create a testimonial section in a carousel format, displaying three reviews per slide with a round profile picture, a bold name, and a star rating."

Element Entrance Animation (Fade-in / Slide-in)

Bad Prompt:

"Add an animation."

Good Prompt:

"Apply a fade-in animation to titles and buttons on load, and a slide-in effect from the left for images to create a dynamic layout."

Styled Call-to-Action (CTA) Buttons

Bad Prompt:

"Add a ‘Book’ button."

Good Prompt:

"Add a ‘Book Now’ CTA button with a blue gradient, a hover animation that slightly increases opacity, and a subtle glow effect."

Optimized Footer with Links and Social Icons

Bad Prompt:

"Add a footer with links."

Good Prompt:

*"Create a structured footer with three columns:

  • A logo and short description.
  • A quick links section (‘Legal Notice,’ ‘Terms & Conditions,’ ‘FAQ’).
  • A social media icons section (Facebook, Instagram, Twitter) with a zoom hover effect."*

Contact Form with Confirmation Message

Bad Prompt:

"Add a contact form."

Good Prompt:

"Create a contact form with three fields (Name, Email, Message), a rounded blue submit button, and an animated confirmation message upon submission."

Destination List with Advanced Filters

Bad Prompt:

"Add a list of destinations."

Good Prompt:

"Create a destination list in a card format with a top image, a title, and a ‘View More’ button. Add a sticky filter bar at the top with sorting options for price, popularity, and trip duration."


Documentation Links

For further details and advanced techniques, please refer to the following resources:


Supercharge addon: Enhancing Your Bolt Experience

For those looking to push the limits of Bolt with the last tools, check out these Supercharge resources:

Supercharge offers voice mode, component selector, and practical examples that help you overcome common challenges in no-code development, optimize your prompt strategies, and integrate advanced functionalities seamlessly.


This README documents the outcomes of the training session at XRPL. We invite you to explore these materials, experiment with the recommended tech stack, and refine your skills in prompt engineering and modern web development. Whether you're leveraging Supercharge for advanced insights or using our glossary to master technical communication, our aim is to empower your journey in AI-powered development.

Happy coding and prompt crafting!

image

image

About

Documentation for the XRPL AI Code workshop held on February 18, 2025

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published