- Make docker defaults for prod and dev for kickstarting a project easy way
- Server: mongo + node + express + graphql
- Client: react + apollo + redux
docker-compose builddocker-compose up(this kickstarts the nodemon environment too)
- Open
localhost:80/api/graphqlfor the local server environemt - Open
localhost:3001for the local client environemt
- Set
NODE_ENVvariable inDockerfilein client and server to production. - Change the last command in
Dockerfilefor client tonpm run build. - Change the last command in
Dockerfilefor server tonpm start.
