Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bouvens/nodejs-gmp
- Owner: bouvens
- License: other
- Created: 2021-03-03T14:53:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-12T17:26:05.000Z (over 2 years ago)
- Last Synced: 2023-03-05T09:52:20.721Z (over 1 year ago)
- Topics: docker, express, nodejs, typescript
- Language: TypeScript
- Homepage:
- Size: 453 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```