Skip to content

ro-abramov/react-apollo-express-postgres-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

ReactJS + Apollo + Express + Postgres Starter Kit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •