-
Download Docker CE
-
Pull the project from github
git pull url -
Change into the project directory
cd docker-nginx-node-postgres -
Change into the app directory
cd appand runnpm installinside -
Change into the api directory
cd ../apiand runnpm installinside -
Run
npm run dev:install- This runs the 00-install-dev.sh script, It will build the docker images from dev.docker-compose.yml, start the database to allow it to register a user the stop the database. You should only have to do this one time.
- if the above command finishes successfully you can run
npm run dev:up, this runs adocker-compose -f dev.docker-compose.yml up. All this command does is run the images we created with the install script .-fspecifies the file to run.
-
Run
npm run dev:up- check the url
locahostandlocalhost/api
- check the url
You shouldn't have to do anything other then added the PEM file to keychain.
- Open Keychain
- Click
Certificatesunder Category - Click
File->Import File-> Navigate to theconfig/nginx/ssland click on the rootCA.pem file - Right Click on the
RSVPcertificate - Click
Get Info - Click the Arrow to the left of
trust - Change
When using this certificatetoAlways Trust