An innovative automatic coding tool that generates projects from README.md using Claude 3.5 Sonnet API
npm install autocode-ai
npx autocode-ai
`
4. Select your model from menu
5. Follow the prompts and watch as your project comes to life!
How It Works
AutoCode reads your README.md file and your sources and sends the instructions to the Claude 3.5 Sonnet API. The API interprets the instructions and generates the necessary code structure, files, and content. AutoCode then saves the generated code back to your project directory. It can now generate code for different languages based on the project requirements and applies language-specific linting and formatting.
Requirements
- Node.js (version 20.0.0 or higher)
- Use async/await, ES6 modules, and fetch (no axios please)
Boilerplate
- https://github.com/msveshnikov/boiler-plate (MERN stack with auth, roles, payments, chat, notifications, settings, admin panel and more)
- put your project description in README.md
- start brainstorming (p.1)
- replace "boiler" with your project name in all source files
- generate code (p.2) - not too much at once (5-7 files max)
- revisit README often, it is your main source of truth. Remove unrealistic goals and tasks.
- your MVP ready in 2-3 hours
- fix deploy to your VPS/nginx/certbot/docker
Project Structure
- codeAnalyzer.js: Analyzes existing code for quality and improvement opportunities
- codeGenerator.js: Generates new code based on instructions and API responses
- config.js: Manages configuration settings for the application, including language-specific configs
- documentationGenerator.js: Automatically generates documentation for the project
- fileManager.js: Handles file operations and project structure management
- index.js: Main entry point of the application
- userInterface.js: Manages user interactions and command-line interface
- landing.html: Template for generating project landing pages
- licenseManager.js: Handles license management and validation
- server/index.js: Express.js backend main point
- server/license-server.js`: Route for license management