# node-docker-starter

> Nodejs Backend Starter Template

Latest version **1.0.13** (published 2024-09-17) · ISC license · 0 weekly downloads

## Install

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

Provides the command `node-docker-starter`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.13 |
| Published | 2024-09-17 |
| First published | 2023-07-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | munavvar |
| Keywords | node, node.js, docker, postgres, drizzle, orm, rest, api, starter, cli, template, boilerplate |

## Links

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

## Dependencies (4)

- [ora](https://npm.io/package/ora.md) ^8.1.0
- [chalk](https://npm.io/package/chalk.md) ^5.3.0
- [figlet](https://npm.io/package/figlet.md) ^1.7.0
- [inquirer](https://npm.io/package/inquirer.md) ^11.0.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.13 (latest) — 2024-09-17
- 1.0.12 — 2024-09-17
- 1.0.11 — 2024-09-16
- 1.0.9 — 2024-09-16
- 1.0.8 — 2023-11-15
- 1.0.7 — 2023-11-15
- 1.0.6 — 2023-08-04
- 1.0.5 — 2023-07-30
- 1.0.4 — 2023-07-30
- 1.0.3 — 2023-07-30
- 1.0.2 — 2023-07-30
- 1.0.1 — 2023-07-30
- 1.0.0 — 2023-07-30

## README

# `npx node-docker-starter my-app`

# Nodejs-Docker-Postgres-starter

A starter project for building Rest APIs with Node.js, Typescript, PostgreSQL, and Drizzle ORM. It provides a basic folder structure and starter files to help you get started with your own Rest API quickly and easily.

## Features

- Typescript for type safety
- PostgreSQL for data storage
- Drizzle ORM for database operations
- Swagger for API documentation
- Inversify for dependency injection
- Express for handling HTTP requests
- Docker support for easy deployment

## Getting Started

### Prerequisites

- Node.js (v14 or later)
- PostgreSQL
- Docker

### Installation

1. Installation command: `npx nodejs-docker-starter my-app`
2. Install necessary dependencies: `cd my-app && pnpm install`
3. Rename `.env.example` to `.env` and update the environment variables:
   ```
   DATABASE_URL=your_database_url
   PORT=your_preferred_port
   NODE_ENV=development
   ```

### Running the Application

1. Start the server: `docker compose up`
2. Access the API documentation: Open `http://localhost:<PORT>/api-docs` in your browser
3. User routes are available at: `http://localhost:<PORT>/api/user`

### Testing

1. Run tests: `pnpm test`

### Folder Structure

```
my-app/
├── src/
│   ├── application/
│   │   ├── dto/
│   │   ├── services/
│   │   └── useCases/
│   ├── common/
│   │   └── config/
│   ├── domain/
│   │   ├── entities/
│   │   └── interfaces/
│   ├── infrastructure/
│   │   ├── adapters/
│   │   │   ├── errors/
│   │   │   ├── inversify/
│   │   │   ├── logger/
│   │   │   └── swagger/
│   │   ├── database/
│   │   │   ├── migration/
│   │   │   ├── repositories/
│   │   │   └── schema/
│   │   └── server.ts
│   ├── presentation/
│   │   ├── http/
│   │   │   ├── controllers/
│   │   │   └── routes/
│   │   └── middlewares/
│   └── index.ts
├── .docker

```

### API Routes

- API Documentation: `/api-docs`
- User Routes: `/api/user`
  - Create User: POST `/api/user/create`

For detailed API documentation and testing, visit the Swagger UI at `/api-docs` after starting the server.

### Contributing

We welcome contributions to improve this starter project. If you'd like to contribute, please follow these steps:

1. Fork the repository
2. Create a new branch for your feature or bug fix
3. Make your changes and commit them with clear, descriptive messages
4. Push your changes to your fork
5. Create a pull request to the main repository

For more detailed information on contributing, please see our [CONTRIBUTING.md](CONTRIBUTING.md) file.

### License

This project is licensed under the GPL-3.0 License - see the [LICENSE](https://github.com/MunavvarSinan/nodejs-prisma-docker-postgres-starter/blob/main/LICENSE) file for details.

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