# nodejs-as-docker

> implement Docker into Your NodeJS project

Latest version **1.1.2** (published 2019-02-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install nodejs-as-docker
pnpm add nodejs-as-docker
yarn add nodejs-as-docker
bun add nodejs-as-docker
```

## 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.2 |
| Published | 2019-02-15 |
| First published | 2018-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 36.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | krzysztof.kabala@amsterdamstandard.com |
| Maintainers | amsdard, krzysztof.kabala |

## Links

- npm: https://www.npmjs.com/package/nodejs-as-docker
- Repository: https://github.com/amsdard/nodejs-as-docker
- Homepage: https://github.com/amsdard/nodejs-as-docker#readme
- Issues: https://github.com/amsdard/nodejs-as-docker/issues
- npm.io page: https://npm.io/package/nodejs-as-docker

## Recent versions

- 1.1.2 (latest) — 2019-02-15
- 1.1.1 — 2018-07-10
- 1.0.3 — 2018-03-13
- 1.0.2 — 2018-03-13

## README

AS docker - NodeJS with ExpressJS
========================
implement Docker into Your NodeJS project


Requirements
---
 * configure Your local [projects enrironment](https://bitbucket.org/as-docker/projects-environment)
 * make sure You have [YAKE](https://yake.amsdard.io/) installed


Install
---
Download package by composer (or git clone to Your `~/Projects` directory)
```
npm i nodejs-as-docker
```

 * ExpressJS mode (default)
```
./node_modules/nodejs-as-docker/setup
```


Install - Full sample
---
create a new project
```
npm install express-generator -g
express --view=pug myapp
cd myapp
npm install
```

install as-docker
```
npm i nodejs-as-docker
./node_modules/nodejs-as-docker/setup
```

run the project
```
yake configure
yake up
```


How it works
---
* below file structure will be installed
```
.
├── README.md
├── docker-compose.yml
├── Yakefile
├── deploy
│   ├── prod
│   │   └── docker-compose.yml
│   └── rancher
│       └── docker-compose.yml
└── docker
    ├── mysql
    │   ├── config.env
    │   └── config.env.dist
    └── webapp
        ├── config.env
        ├── config.env.dist
        └── Dockerfile
```
* Your project directory name will be filled as local domain name and docker image namespace (see `docker-compose.yml`)
* new rules will be added to Your `.gitignore` file: 
  * `/docker/*/*.env` container ENV

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