@@ -35,8 +35,10 @@ The following parameters can be set in config files or in env variables:
3535- ES: config object for Elasticsearch
3636- ES.HOST: Elasticsearch host
3737- ES.API_VERSION: Elasticsearch API version
38- - ES.ES_INDEX: Elasticsearch index name
39- - ES.ES_TYPE: Elasticsearch index type
38+ - ES.ES_INDEX: Elasticsearch index name for member
39+ - ES.ES_TYPE: Elasticsearch index type for member
40+ - ES.MEMBER_TRAIT_ES_INDEX: Elasticsearch index name for member trait
41+ - ES.MEMBER_TRAIT_ES_TYPE: Elasticsearch index type for member trait
4042- FILE_UPLOAD_SIZE_LIMIT: the file upload size limit in bytes
4143- ID_FIELDS: member identifiable info fields, only admin, M2M, or member himself can get these fields
4244- PHOTO_URL_TEMPLATE: photo URL template, its <key > will be replaced with S3 object key
@@ -88,8 +90,8 @@ It starts Elasticsearch, DynamoDB and S3 compatible server.
88903 . Initialize/Clear database: ` npm run init-db `
89914 . Create Elasticsearch index: ` npm run init-es ` , or to re-create index: ` npm run init-es force `
90925 . Seed/Insert data to ES and DB: ` npm run seed-data `
91- 6 . View DB table data: ` npm run view-db-data <ModelName> ` , ModelName can be ` Member `
92- 7 . View ES data: ` npm run view-es-data `
93+ 6 . View DB table data: ` npm run view-db-data <ModelName> ` , ModelName can be ` Member ` , ` MemberTrait `
94+ 7 . View ES data: ` npm run view-es-data <IndexName> ` , IndexName can be ` member ` , ` member_trait `
9395
9496## Local Deployment
9597
@@ -166,3 +168,10 @@ Refer to the verification document `Verification.md`
166168
167169- all JWT tokens provided in Postman environment file and tests are created in ` https://jwt.io ` with secret ` mysecret `
168170
171+ - you don't need to setup the (https://github.com/topcoder-platform/member-processor-es ),
172+ because there is seed-data script to setup data to test the members API,
173+ the tests also have setup data properly
174+
175+ - the tests use mock S3 service to upload member photo, so you may use the provided mock AWS credential for tests,
176+ but Postman tests require using real AWS S3, you need to follow README.md to create S3 bucket and provide your own AWS credential
177+ so that the upload photo API works
0 commit comments