Skip to content

seansjlee/writeme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WRITEME

This README was automatically generated by WRITEME itself, demonstrating the application's AI-powered documentation capabilities.

Project Description

WRITEME is a Spring Boot web application designed to assist developers by generating comprehensive README files for their projects. By uploading project files, WRITEME analyzes the codebase and formulates prompts that are sent to Spring AI, utilizing an OpenAI model to generate informative documentation. This tool streamlines the process of creating essential project documentation, saving time and enhancing clarity.

Technologies Used

  • Java: The primary programming language used for development.
  • Spring Boot: Framework for building the web application.
  • OpenAI API: Utilized for generating README content based on code analysis.
  • Maven: Dependency management and build automation.
  • Thymeleaf: Used as the templating engine for rendering HTML views.

Project Structure

writeme
├── src
│   ├── main
│   │   ├── java
│   │   │   └── com
│   │   │       └── seanlee
│   │   │           └── writeme
│   │   │               ├── AiService.java
│   │   │               ├── DocumentationController.java
│   │   │               ├── DocumentationService.java
│   │   │               └── WritemeApplication.java
│   │   ├── resources
│   │   │   ├── application.properties
│   │   │   ├── static
│   │   │   │   └── style.css
│   │   │   └── templates
│   │   │       └── index.html
│   ├── test
│   │   └── java
│   │       └── com
│   │           └── seanlee
│   │               └── writeme
│   │                   └── WritemeApplicationTests.java
├── pom.xml
└── README.md

Main Features

  • File Upload: Users can upload project files for analysis.
  • Code Analysis: The application inspects the codebase to extract relevant information.
  • AI-Generated Documentation: Leverages AI to generate detailed README files based on the analysis.
  • RESTful API: Provides endpoints for interacting with the application.

How to Run/Setup

To set up and run the WRITEME application locally, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/seansjlee/writeme.git
    cd writeme
  2. Build the Project: Ensure you have Maven installed, then run:

    mvn clean install
  3. Run the Application: Start the application using:

    mvn spring-boot:run
  4. Access the Application: Open your web browser and navigate to http://localhost:8080.

API Endpoints

The WRITEME application provides the following API endpoints:

DocumentationController

  • GET /:
    • Description: Returns the home page of the application.
    • Method: index()

DocumentationService

  • Service Class: Handles the logic for generating documentation based on uploaded files.

AiService

  • POST /generate-readme:
    • Description: Accepts project files and generates a README file using AI.
    • Method: generateReadmeFromAi()
    • Request Body: Contains the uploaded project files in a suitable format.
    • Response: Returns the generated README content.

Conclusion

WRITEME simplifies the documentation process for developers by leveraging advanced AI capabilities to generate clear and concise README files. With its easy setup and user-friendly interface, WRITEME is a valuable tool for any developer looking to enhance their project documentation.

Feel free to explore the codebase and contribute to the project! For any issues or feature requests, please open an issue on the GitHub repository.

About

AI README generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published