Skip to content

Commit 8bf5fda

Browse files
committed
Update README to reflect latest changes
1 parent 9609912 commit 8bf5fda

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,15 @@ Use `ng serve` to start the react server
22

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

5-
`
5+
```
66
"nodemonConfig": {
77
"watch": ["server"]
88
},
9-
`
10-
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.
9+
```
10+
The `nodemonConfig` tells nodemon to only watch the server dir.
1111

1212
The `proxy.conf.json` file setups the proxy for the ng server to redirect all traffic on `/api` to go to the backend docker instance instead.
1313

14-
The way the knexfile is setup, the development section allow the user to run the knex migration from the host computer and is routed to the docker instance using localhost. The production section is used by docker to setup the postgres DB and it's connections to the rest of the docker containers.
14+
The way the knexfile is setup, there is a single configuration shared by both development and production.
1515

16-
This is controlled using the `ENVIRONMENT` property within the docker-compose.override.yml file, under the environment section.
17-
18-
`knex migrate:latest` will run any migrations made, but this needs to be run in the server dir as that is where the knexfile.js is.
19-
20-
The `npm run dev` script within the package.json file sets up the how docker is going to run the express server using nodemon.
16+
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.

0 commit comments

Comments
 (0)