bubbles-express-generator
Version:
A simple CLI to scaffold Express.js starter projects.
87 lines (54 loc) โข 2.58 kB
Markdown
# bubbles-express-generator [](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-๐)

### ๐ง 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)