| Crates.io | create-neon-api |
| lib.rs | create-neon-api |
| version | 0.1.2 |
| created_at | 2025-08-29 13:28:16.52898+00 |
| updated_at | 2025-08-29 14:02:05.89683+00 |
| description | A CLI tool to bootstrap a clean, production-ready Rust backend with JWT authentication and Neon PostgreSQL database. |
| homepage | |
| repository | https://github.com/peterkyle01/create-neon-api.git |
| max_upload_size | |
| id | 1815831 |
| size | 34,164 |
A beautiful CLI tool to bootstrap clean, production-ready Rust backend projects with JWT authentication and Neon PostgreSQL database integration.
๐ฆ Available on crates.io/crates/create-neon-api!
Cargo.tomlcargo build to fetch dependenciescargo install create-neon-api
git clone https://github.com/peterkyle01/create-neon-api.git
cd create-neon-api
cargo install --path .
You can use the tool in two ways:
Run the tool and follow the prompts:
create-neon-api
The tool will start with a beautiful interactive interface:
๐ Rust Backend Project Generator
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Enter your project name: my-awesome-api
๐ Creating project 'my-awesome-api'...
โ
Template cloned successfully!
๐ Updated Cargo.toml with project name
๐ฆ Running initial `cargo build`...
๐ Project created successfully!
Next steps: `cd my-awesome-api`, configure your `.env` file, and run `cargo run`.
Provide the project name directly as an argument:
create-neon-api my-new-project
This will skip the interactive prompt and create the project immediately.
Install the tool:
cargo install create-neon-api
Create a new project:
# Interactive mode
create-neon-api
# Or provide project name directly
create-neon-api my-awesome-api
Follow the prompts (if using interactive mode) and enter your project name
Start developing:
cd your-project-name
cp .env.example .env
# Edit .env with your configuration
cargo run
The tool validates project names to ensure they follow Cargo package naming conventions:
Examples:
my-api-serveruser_servicebackend2024My-API (uppercase letters)-invalid-start (starts with hyphen)invalid@name (special characters)The generated project includes:
.env file supportNavigate to your project:
cd your-project-name
Configure environment variables:
cp .env.example .env
# Edit .env with your database credentials and JWT secret
Run the development server:
cargo run
Run tests:
cargo test
This tool clones from the Rust Backend Template repository, which includes:
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the MIT License - see the LICENSE file for details.
Peter Mwangi
Happy coding! ๐ฆโจ