# node-architecture-starter

> Nodejs design architecture that you can resuse to avoid rendundace work

Latest version **1.1.4** (published 2020-10-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-architecture-starter
pnpm add node-architecture-starter
yarn add node-architecture-starter
bun add node-architecture-starter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2020-10-18 |
| First published | 2020-10-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 13.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Cecil Migayi |
| Maintainers | cmigayi |
| Keywords | mvc, node-mvc, design, architecture |

## Links

- npm: https://www.npmjs.com/package/node-architecture-starter
- Repository: https://github.com/cmigayi/node-architecture-starter
- Homepage: https://github.com/cmigayi/node-architecture-starter#readme
- Issues: https://github.com/cmigayi/node-architecture-starter/issues
- npm.io page: https://npm.io/package/node-architecture-starter

## Dependencies (6)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [chai](https://npm.io/package/chai.md) ^4.2.0
- [path](https://npm.io/package/path.md) ^0.12.7
- [mocha](https://npm.io/package/mocha.md) ^8.1.3
- [readline](https://npm.io/package/readline.md) ^1.3.0
- [replace-in-file](https://npm.io/package/replace-in-file.md) ^6.1.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.1.4 (latest) — 2020-10-18
- 1.1.3 — 2020-10-18
- 1.1.2 — 2020-10-18
- 1.1.1 — 2020-10-18
- 1.1.0 — 2020-10-14
- 1.0.3 — 2020-10-14
- 1.0.2 — 2020-10-14
- 1.0.1 — 2020-10-14
- 1.0.0 — 2020-10-13

## README

# node-architecture-starter
Nodejs design architecture that you can reuse to avoid redundant work 
## Installation
Inside your project directory:
> sudo npm install node-architecture-starter --save
## Usage
1. Create a file where you have your package.js file; and name it __generate.js__
> sudo touch generate.js
2. Inside __generate.js__ write and save the following line:
> const ns = require('node-architecture-starter');
3. Execute the following command on your terminal:
> node generate
4. Specify your __project name__ when prompted. Note: Your __project name__ should be the same as your root directory.
5. Type __Y__ when prompted to __Create directories (data, models, controllers, routes, test). Choose Y/N:__
6. Next, provide an __entity name__ (All small letters) when prompted to __Current project (testProject2), Enter entity name (Data model):__. Note: __entity name__ is a name of a table in your database.
7. You should see a list of successful messages displayed as shown below:
* _If everything is successfully, you can exit the console (Ctrl + C)
* _File permission change successful
* _File permission change successful
* _File permission change successful
* _File permission change successful
* _File permission change successful
* _File content replacement successful
* _File content replacement successful
* _File content replacement successful
* _File content replacement successful
* _File content replacement successful

8. As a result of action 5, your project should appear as shown below. _Items in __block__ are the recent generated directories:
* ___controllers__ 
* ___models__
* ___routes__
* ___data__ 
* ___test__
* _node_modules
* _generate.js 
* _package-lock.json
* _package.json

9. As a result of action 6, in each of the following directories (controllers, models, routes, data, test), you should find a file named as __entity name__ you provided with prewritten nodejs code.

10. At this point you are done. You can now continue working on your project.

---
_Source: https://npm.io/package/node-architecture-starter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
