Skip to content

ehalsmer/people-search

 
 

Repository files navigation

CokPeopleSearchFrontend

This project was generated with Angular CLI version 7.2.1.

Development server

Run AWS_PROFILE=cok ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run npm run test to execute the unit tests via Karma.

Running end-to-end tests

Run npm run e2e to execute the end-to-end tests via Protractor.

Deploying

ATTENTION: You must change the provider:stage value in serverless.yml before running the commands below. I have no idea why.

AWS_PROFILE=cok npm run build:dev:deploy
AWS_PROFILE=cok npm run build:prod:deploy

Monitor logs

AWS_PROFILE=cok serverless logs -f FUNCTION -s dev -t
AWS_PROFILE=cok serverless logs -f FUNCTION -s production -t

API Documentation https://docs.google.com/document/d/1145R9-FcmA1NMXMAwbzFmNZ4DRtdWuazCsZYtJa8Owg/edit#heading=h.fzmuu9lzv3sm

Example Local Invocations

Send a mixPanel event

AWS_PROFILE=cok SLS_DEBUG=* serverless invoke local -X -f sendEvent --data '{ "queryStringParameters": {"event":"test","emailAddress":"[email protected]","options":{"possibleMatches":50,"personMatch":false}}}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 37.4%
  • TypeScript 36.8%
  • JavaScript 20.8%
  • CSS 5.0%