UNPKG

bubbles-express-generator

Version:
87 lines (54 loc) โ€ข 2.58 kB
# bubbles-express-generator [![npm version](https://badge.fury.io/js/bubbles-express-generator.svg)](https://www.npmjs.com/package/bubbles-express-generator) ## A simple CLI to scaffold Express.js starter projects. [๐Ÿ”ง Usage](#๐Ÿ”ง-usage-๐Ÿ”) | [๐Ÿงช Variants](#๐Ÿงช-variants-๐Ÿ”) | [๐Ÿ“ Output](#๐Ÿ“-output-๐Ÿ”) | [๐Ÿ Flags](#๐Ÿ-flags-๐Ÿ”) | [๐Ÿ“– Help](#๐Ÿ“–-help-๐Ÿ”) | [๐Ÿค Contributions](#๐Ÿค-contributions-๐Ÿ”) | [๐Ÿ”— Links](#๐Ÿ”—-links-๐Ÿ”) ![bubbles-express](bubbles-express.png) ### ๐Ÿ”ง Usage [๐Ÿ”](#bubbles-express-generator) You can use the CLI via `npx` (no installation needed): ```bash npx bubbles-express ``` Or if you prefer to, install it globally: ```bash npm install -g bubbles-express-generator ``` Then you can run it with: ```bash bubbles-express ``` ### ๐Ÿงช Variants [๐Ÿ”](#bubbles-express-generator) The generator supports different project types: - **(Supabase) PostgreSQL + Drizzle ORM + TypeScript** - **MongoDB (Atlas) + Mongoose ODM + TypeScript** - **(Supabase) PostgreSQL + Drizzle ORM + JavaScript** - **MongoDB (Atlas) + Mongoose ODM + JavaScript** ### ๐Ÿ“ Output [๐Ÿ”](#bubbles-express-generator) A new folder will be created with the generated code based on your selections. If the current directory is not empty, you'll be prompted whether to overwrite it or choose a new name. After that, dependencies will be installed automatically. Once it's done, you can start your project with: ```bash cd your-project-name npm run dev ``` You're ready to go! ### ๐Ÿ Flags [๐Ÿ”](#bubbles-express-generator) You can skip the interactive prompts by providing flags directly: - `--ts` or `--js`: Set the language (TypeScript or JavaScript) - `--pg` or `--mongo`: Choose your database (PostgreSQL or MongoDB) Example: ```bash npx bubbles-express my-api --ts --pg ``` If all necessary flags are provided, the generator will auto-run without any questions. ### ๐Ÿ“– Help [๐Ÿ”](#bubbles-express-generator) To display the help menu, you can run: ```bash npx bubbles-express --help ``` This will show a list of available flags and usage examples. ### ๐Ÿค Contributions [๐Ÿ”](#bubbles-express-generator) This is my very first npm package โ€” so it's likely to have more quirks than I realized ๐Ÿ˜… Feel free to open an issue for improvements or bug fixes, or submit a pull request directly. ### ๐Ÿ”— Links [๐Ÿ”](#bubbles-express-generator) - ๐Ÿ“„ [Documentation](https://github.com/mrbubbles-src/bubbles-express-generator) - ๐ŸŒ [Website](https://github.com/mrbubbles-src/bubbles-express-generator)