Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 1.76 KB

File metadata and controls

81 lines (53 loc) · 1.76 KB

This is a starter kit for developing web apps.

Technology stack

Front-end stack

Back-end stack

Database

Docker

Requirements

  • Docker;
  • Docker-Compose (CLI).

Start containers

Prerequisites

Plese note, that we are checking if the postgres container is ready with simple shell script. (as suggested in official documentation on docker hub). So, for linux and MacOS users check ther permission of wait-for-it.sh script.

ls -la app/ | grep wait-for it
-rwxr-xr-x 1 user user   4078 мар 13 23:16 wait-for-it.sh # that the correct permission
# In case your output looks as following
-rw-r--r-- 1 user user   4078 мар 13 23:16 wait-for-it.sh
# Enter the following command
chmod +x app/wait-for-it.sh

Development

docker-compose up --build

Production

docker-compose -f production-compose.yml up -d --build

Stop containers

docker-compose down -v

URLs/Services

Development

  • localhost:3000 - create-react-app;
  • localhost:3100 - express server;
  • localhost:5432 - postgres;
  • localhost:4040 - adminer.

Production

  • localhost - application (pm2-runtime);
  • localhost:5432 - postgres;
  • localhost/adminer - adminer.

Database

(adminer parameters)

  • System - PostgreSQL;
  • Server - db;
  • Username - root;
  • Password - toor;
  • Database - db.