Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bouvens/nodejs-gmp

Node.js + TypeScript + Express + Docker sample project
https://github.com/bouvens/nodejs-gmp

docker express nodejs typescript

Last synced: about 7 hours ago
JSON representation

Node.js + TypeScript + Express + Docker sample project

Awesome Lists containing this project

README

        

# Node.js Sample Project

With Express, TypeScript, Docker, logging, error handling, and 3-layer architecture

## Bulletproof Architecture

Source: https://softwareontheroad.com/ideal-nodejs-project-structure/

## How To Run

```bash
git clone https://github.com/bouvens/nodejs-gmp.git
cd nodejs-gmp
npm install
```

Create a `.env` file with at least one parameter: `DB_URI` for connecting to PostgreSQL.

```bash
npm run start
```

## Docker
Execute the next commands:
```bash
docker build . -t /nodejs-gmp
docker run --env-file /.env -p :3000 -d /nodejs-gmp
```

or

```bash
docker-compose build
docker-compose up
```