layout-fast_web v1.2.1
Getting Started
Copy over environment variables
cp .env.sample .env
Getting started
Prepare AWS Profile
Download AWSCLI
Ideally based on Schneider Digital Security guideline, We should be using PingID to have our ADM account mapped to an IAM role to have access to whatever cloud service we required. But for now, we can use the same IAM user account we used for the pipeline
AWS Access Key ID: request from SE team
AWS Secret Access Key: request from SE team
Region: us-east-1
aws configure
Set Environment Variable for AWS CodeArtifact
Token will expired in 12 hours, so you might have to update in case token expired
- Windows OS
for /f %i in ('aws codeartifact get-authorization-token --domain se-layoutfast --domain-owner 953321783946 --query authorizationToken --output text') do set CODEARTIFACT_AUTH_TOKEN=%i
- MacOS / Linux
export CODEARTIFACT_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain se-layoutfast --domain-owner 953321783946 --query authorizationToken --output text`
Installing depdendencies
yarn login
Follow the prompts to login to npm. If you don't have access to schneiders private npm registry, ask another developer for an access token.
yarn install # fetch and install all of the project's dependencies
Running a development server
yarn start
Testing the production build
yarn build
yarn start:prod
client should be available at http://localhost:8080/index.html?prod=true#
Test Users:
willc+1@mojotech.com/Password1!
3 months ago