Skip to content

devleague/docker-react-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

17631b9 · Oct 8, 2019

History

11 Commits
Dec 24, 2018
Oct 8, 2019
Dec 24, 2018
Mar 8, 2019
Dec 24, 2018
Mar 19, 2019
Mar 19, 2019
Oct 8, 2019
Mar 19, 2019
Mar 19, 2019
Mar 8, 2019
Mar 8, 2019
Dec 24, 2018
Mar 19, 2019

Repository files navigation

Use npm run start to start the react server

docker-compose up to start the backend server along with postgres and redis.

"proxy": "http://localhost:8080", "nodemonConfig": { "watch": ["server"] }, The above configurations tells the react proxy server to redirect all api calls to the backend docker instance. The nodemonConfig tells nodemon to only watch the server dir.

The way the knexfile is setup, there is a single configuration shared by both development and production.

Migrations and Seeds are now run automatically on launching the express docker container via the deploy-*.js files. It also launches the server with node in production mode or launches nodemon watching all files in development mode.