2022-03-23 23:19:06 +03:00
2022-03-18 22:14:56 +03:00
2022-03-18 21:10:41 +03:00
2022-03-18 22:43:48 +03:00
2022-03-21 23:57:00 +03:00
2022-03-18 22:43:48 +03:00
2022-03-18 22:43:48 +03:00
2022-03-18 00:52:42 +03:00
2022-03-23 23:13:03 +03:00
2022-03-23 21:15:00 +03:00
2022-03-23 23:00:31 +03:00
2022-03-23 21:02:34 +03:00
2022-03-23 21:02:34 +03:00
2022-03-21 23:57:00 +03:00
2022-03-18 22:14:56 +03:00
2022-03-18 22:14:56 +03:00
2022-03-18 21:10:41 +03:00
2022-03-18 21:10:41 +03:00
2022-03-23 23:19:06 +03:00
2022-03-18 22:14:56 +03:00
2022-03-18 22:43:48 +03:00
2022-03-18 22:14:56 +03:00
2022-03-18 22:14:56 +03:00

node-docker-example

About

This app showcases a website built with NodeJS. The site has a set of articles, each article has a separate page, all data about the article is stored in the PostgreSQL database. Docker is used to deploy the application.

🔗 Deployed on Heroku

Folder structure

.
└── .
    ├── controllers - contains handlers for http requests
    ├── helpers - some string, file and database helper functions
    ├── middlewares - contains functions that will execute before the handler is executed
    ├── models - contains entities for their creation or getting
    ├── nginx - nginx web server config or certificate will place here
    ├── preloads - every file in this folder will be executed before starting the server
    ├── public - contains static files for http response
    ├── scripts - some bash scripts
    ├── sql - database ".sql" files for querying
    └── views - file for page rendering

How to deploy

    1. Clone this repository git clone https://github.com/sergeyyarkov/node-docker-example.git .
    1. Configure enviroment variables in docker-compose.yml for postgres and nodejs serivces if you need to
    1. Build and run application with docker compose up --build

Requirements

  • Node.js >= v14.13.0
  • Docker
Description
This app showcases a website built with NodeJS. The site has a set of articles, each article has a separate page, all data about the article is stored in the PostgreSQL database. Docker is used to deploy the application.
Readme MIT 164 KiB
Languages
JavaScript 61.8%
Handlebars 16%
Shell 14.9%
CSS 5.5%
Dockerfile 1.8%