Skip to content

Commit

Permalink
modify README file and package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
abdrahmanES1 committed Nov 11, 2023
1 parent 5bc5bba commit 86c0017
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ Express API Initializer is a tool designed to streamline the process of generati

## Installation

Ensure you have [node.js](https://nodejs.org/)) installed, then install express-api-initializer globally using [npm](https://www.npmjs.com/):
Ensure you have [node.js](https://nodejs.org/) installed, then install express-api-initializer globally using [npm](https://www.npmjs.com/):

```bash
npm install -g express-api-inializer
npm install -g express-api-initializer
```

To create a new project, run:

```bash
express-inializer new <app-name>
express-initializer new <app-name>
```
Your app structure will be initialized as follows:

Expand Down Expand Up @@ -49,38 +49,38 @@ node index.js
Generate resources using plural nouns:

```bash
express-inializer g resource <resource-name>
express-initializer g resource <resource-name>
```

## Controller Generation

Generate controllers using:

```bash
express-inializer g controller <controller-name>
express-initializer g controller <controller-name>
```

## Controller Generation

Generate models using:

```bash
express-inializer g model <model-name>
express-initializer g model <model-name>
```
## Route Generation

Generate routes using:

```bash
express-inializer g route <route-name>
express-initializer g route <route-name>
```
## Middleware Generation

Generate middleware using:


```bash
express-inializer g middleware <middleware-name>
express-initializer g middleware <middleware-name>
```

Feel free to use these commands to efficiently scaffold and organize your Express.js applications.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "express-api-initializer",
"version": "0.0.1",
"bin": {
"express-inializer": "./dist/src/index.js"
"express-initializer": "./dist/src/index.js"
},
"description": "",
"main": "index.js",
Expand Down

0 comments on commit 86c0017

Please sign in to comment.