elixir-health-server v2.0.0
postico
https://wanago.io/courses/typescript-express-tutorial/
chrome://flags/#allow-insecure-localhost
Elixir Backend
Prerequisites
- node: v12.12
- npm: 6.11.3
- docker
- yarn: 1.19.1
Setup
env files
We used .env and .env.* files to populate secrets. You have to speak to me to get the variable values, and what you need populated in the file.
Postgresl
docker-compose up
Server
# install packages
yarn install
# uses webpack to watch for file changes (this is NOT run in the background)
yarn watch
# this starts up the server
yarn startPackage Commands
# resyncs the schema, migrations and seed data for a specific enviornment
yarn rebuild:ENV
# starts Webpack and watches for file changes
yarn watch:ENV
# runs webpack and builds without watching
yarn build:ENVOther Commands
List Security Breaches in packages
npm auditUpgrade of minor and patch version following your version ranges in package.json
yarn outdated
yarn updateInteractive upgrade of minor and patch version following your version ranges in package.json
yarn upgrade-interactiveList outdated dependencies including major version
yarn upgrade-interactive --latestTroubleshooting
Windows
By default, Virtualbox on Windows doesnt do port forwarding, have to manually add the ports you want port forwarded before any new ports under than SSH will work
Postman
Postman will not return responses from self signed certs, so to get postman to work, need to turn off SSL Validation in postman settings
5 years ago