@cvyadnik/quicknode
Version:
A CLI tool to quickly generate Node.js + Express projects with database setup
89 lines (68 loc) ⢠2.28 kB
Markdown
# š QuickNode CLI
š **QuickNode** is a simple **Node.js CLI tool** that helps you **quickly scaffold a Node.js + Express project** with a database of your choice.
## š„ Installation
To install QuickNode globally from npm, run:
```sh
npm install -g @cvyadnik/quicknode
```
## š Usage
Once installed, you can create a new project by running:
```sh
quicknode
```
Then, follow the interactive prompts:
1ļøā£ **Enter your project name**
2ļøā£ **Select a database** (MongoDB, MySQL, PostgreSQL, SQLite)
After that, **QuickNode will:**
- Set up the project folder structure šļø
- Create necessary configuration files š
- Install all dependencies automatically š¦
- Get your project ready for development š
## ā¶ļø Run Your Project
Once your project is created, navigate into the directory:
```sh
cd your-project-name
```
Start the development server:
```sh
npm run dev
```
Or start it in production mode:
```sh
npm start
```
## š Folder Structure
Your project will be generated with the following structure:
```
your-project-name/
āāā src/
ā āāā config/ # Database configurations
ā āāā controllers/ # Business logic
ā āāā models/ # Database models
ā āāā routes/ # API routes
ā āāā services/ # Reusable services
ā āāā middlewares/ # Express middlewares
ā āāā utils/ # Utility functions
ā āāā validations/ # Request validations
ā āāā logs/ # Log files
ā āāā app.js # Express app setup
ā āāā server.js # Server entry point
āāā .env # Environment variables
āāā package.json # Project metadata
āāā README.md # Documentation
```
## š Supported Databases
QuickNode supports the following databases:
- **MongoDB (Mongoose)**
- **MySQL (Sequelize)**
- **PostgreSQL (Sequelize)**
- **SQLite (Sequelize)**
## ā
Updating QuickNode
If a new version is released, update it with:
```sh
npm update -g @cvyadnik/quicknode
```
## š¤ Contributing
Feel free to **fork** this repository, submit **pull requests**, or open **issues** for feature requests!
## š License
This project is **MIT licensed**.