GithubHelp home page GithubHelp logo

sanchezd90 / beer-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.16 MB

App that generates a daily coupon.

Home Page: https://beer-app-psi.vercel.app

JavaScript 72.53% HTML 2.89% CSS 24.58%
ai-assisted-development chatgpt react

beer-app's Introduction

Beer App

This is a simple application that generates a coupon. This app was developed using AI tools, primarily as a learning exercise to explore the integration of AI capabilities in the app development process.

Overview

This React application serves as a code generator with various features and validations. Users can generate unique codes based on specific criteria, with age and form validations to ensure data integrity and compliance with certain standards. The app prevents rapid code regeneration within 24 hours and provides the ability to download the generated code as a JPG file.

Role of AI tools

The entire app was built with the aid of ChatGPT. The starting point was a given requirements file (see requirements). It took one hour and nine prompts for completing the app logic and fullfiling all requirements (see chats). Another sixty minutes were spent in styling.

Technologies

  • React
  • JavaScript
  • HTML
  • CSS
  • ChatGPT

Features

  • Code Generation: Allows users to generate unique codes based on specified criteria.

  • Age Validations: Ensures users are over 18 years of age before code generation.

  • Form Validations: Verifies that all form fields are completed and data meets specified standards.

  • Rapid Regeneration Prevention: Prevents generating another code with the same ID within 24 hours.

  • Data Persistence: User data is stored locally.

  • Code Download as JPG: Users can download the generated code as a JPG file for convenience.

How to Use

  1. Complete the Form: Enter your name, ID, date of birth, and Instagram username in the form.

  2. Field Validation: Ensure all form fields are completed.

  3. ID Validation: Verify that the ID has between 7 and 8 numbers.

  4. Generate Code: Click on the "Generate Code" button to obtain a unique code.

  5. Code Display: Once generated, the code will appear on the screen.

  6. Code Download: Download the generated code as a JPG file by clicking on the corresponding button.

Installation

  1. Clone the repository:

    git clone https://github.com/sanchezd90/beer-app
  2. Navigate to the project directory:

    cd beer-app
  3. Install dependencies:

    npm install

Running the App

npm start

The app will be accessible at http://localhost:5173 in your browser.

beer-app's People

Contributors

danielsanchezrueda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.