1.130.7 • Published 3 years ago
er-prism-web v1.130.7
EveReal Digital Property Management
NodeJS - ReactJS, Redux, SSR, Flux, Jest, hot-reloading enabled project
Dev Dependencies
- Redis:
docker run -p 6379:6379 --name redis -d redis:alpine
Install Commands
After running visit http://dev.everreal.co:9300/app
# Install
yarn install
# Run in prod
yarn run build # run webpack build
yarn run start # start NodeJS server
# Run in dev
yarn run build # IMPORTANT! run webpack build before starting dev server
# run and watch dev which will
# - start the app in 'development' mode
# - hot reload server and client
# - watch and run tslint and ts
yarn run dev
yarn run dev-client
yarn run test
yarn run test-once
yarn run lint
yarn run lint-fix
yarn run pretty-fix
Deploy to staging
# Make sure you have these environment variables registerd:
# export ER_DOCKER_REGISTRY_USERNAME=<secret>
# export ER_DOCKER_REGISTRY_PASSWORD=<secret>
# export AWS_ACCESS_KEY_ID=<secret>
# export AWS_SECRET_ACCESS_KEY=<secret>
# Then run:
yarn install -g er-aws-deploy
yarn version minor
chmod +x ./tasks/deploy && ./tasks/deploy
git push
Docker Commands
After docker run visit http://dev.everrea.co:9300/app
# Make sure you start dependencies
docker run -p 6379:6379 --name redis -d redis:alpine
# Build docker image
docker build -t er-prism-web .
# Start docker image
docker run -d -p 9300:9300 --name er-prism-web \
-e SERVICE_NAME='er-prism-web' \
-e SERVICE_TAGS='er-prism-web' \
-e NODE_ENV='production' \
-e PORT=9300 \
-e NODE_PATH='./src' \
--link redis:redis \
er-prism-web
Configure it to work with QA and ngrok
session: {
// domain: '.everreal.co', -> coment or delete this line
},
authorization: {
url: 'https://qa.everreal.co/accounts',
redirectURL: 'https://7c692983.ngrok.io/app/receivetoken',
},
services: {
currentServiceUrl: 'https://7c692983.ngrok.io/app',
userServiceUrl: 'https://qa.everreal.co/accounts',
prismApiUrl: 'https://qa.everreal.co/api/prism',
},
Redux DevTools
Make sure to install the Redux DevTools extension for a better development experience:
https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=en
If the extension cannot find the store make sure to restart the web app
1.130.7
3 years ago