Skip to content

Commit 13a6bfd

Browse files
committed
Updated documentation, restructured directory and refined serverless functions
Signed-off-by: Leamsi9 <ismaelv.dev@gmail.com>
1 parent 9fcd900 commit 13a6bfd

File tree

100 files changed

+1673
-3072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1673
-3072
lines changed

.gitignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ BLO2023_normalised_migration_2023_03_15.sql
3737
BLO2018_legacy_migration_2023_03_15.sql
3838

3939
#amplify-do-not-edit-begin
40-
amplify/\#current-cloud-backend
41-
amplify/.config/local-*
42-
amplify/logs
43-
amplify/mock-data
44-
amplify/mock-api-resources
45-
amplify/backend/amplify-meta.json
46-
amplify/backend/.temp
40+
blo-backend/amplify/\#current-cloud-backend
41+
blo-backend/amplify/.config/local-*
42+
blo-backend/amplify/logs
43+
blo-backend/amplify/mock-data
44+
blo-backend/amplify/mock-api-resources
45+
blo-backend/amplify/backend/amplify-meta.json
46+
blo-backend/amplify/backend/.temp
4747
build/
4848
dist/
4949
node_modules/

.graphqlconfig.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
projects:
2-
BLOApi:
3-
schemaPath: blo-app/src/graphql/schema.json
2+
bloapi:
3+
schemaPath: >-
4+
./blo-frontend/src/graphql/schema.json
45
includes:
5-
- blo-app/src/graphql/**/*.js
6+
- ./blo-frontend/src/graphql/**/*.js
67
excludes:
7-
- ./amplify/**
8+
- .//blo-backend/aws/amplify/**
89
extensions:
910
amplify:
1011
codeGenTarget: javascript
1112
generatedFileName: ''
12-
docsFilePath: blo-app/src/graphql
13+
docsFilePath: ./blo-frontend/src/graphql/
1314
extensions:
1415
amplify:
1516
version: 3

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ Phase 1 of work has involved the following:
3838
- Validate architectural design concepts and AWS service orchestration choices in consultation with 4 AWS experts and solution architects over multiple meetings
3939
- Design and plan graceful failure and redundancy strategies
4040
- Design and plan a serverless API
41-
3. Foundational data layer design (see [API docs](./documentation/data_layer/api_design/))
41+
3. Foundational data layer design (see [API docs](documentation/api_design/))
4242

43-
![api design](documentation/data_layer/api_design/Data%20structure.png)
43+
![api design](documentation/api_design/Data%20structure.png)
4444

4545
- Design a preliminary data structure for the planned API
4646
- Draft an OpenAPI contract to enable API First design
@@ -58,7 +58,7 @@ Infrastructure setup
5858
- Set up final S3 and Cloudfront static website
5959
- Set up public Github repository
6060
- Created a [docker-compose specification](docker-compose.yml) to run the legacy BLO mysql database locally
61-
- Provision an [Amplify backend](amplify/) including DynamoDB database and graphQL API
61+
- Provision an [Amplify backend](blo-backend/amplify/) including DynamoDB database and graphQL API
6262

6363
### Operational implementation work to date
6464
The following implementation has been completed, additionally to from the architectural and technical planning and infrastructure set-up:
@@ -67,12 +67,12 @@ The following implementation has been completed, additionally to from the archit
6767
- Mirror & scrape >100,000 urls via httrack over several weeks while 1-3 proceeds iteratively
6868
- Upload the above data to an S3 bucket via the PUT API and expose it publicly as [a transitional but functional BLO website clone](https://bahai-library-online.s3.eu-north-1.amazonaws.com/index.html).
6969
- Expose new static site via CloudFront (https://bahai-library-online.s3.eu-north-1.amazonaws.com/index.html)
70-
2. Legacy [mysql database migration, redesign and normalisation](documentation/data_layer/databases/mysql/)
71-
3. Conversion and [export of normalised MYSQL database data to DynamoDB document store](documentation/data_layer/databases/mysql/BLO2023_normalised/exportMysqlToDynamoDB.js).
72-
3. Draft [OpenApi specification](documentation/data_layer/api_design/blo_openapi.json) as an option
70+
2. Legacy [mysql database migration, redesign and normalisation](blo-backend/databases/mysql/)
71+
3. Conversion and [export of normalised MYSQL database data to DynamoDB document store](blo-backend/databases/mysql/BLO2023_normalised/exportMysqlToDynamoDB.js).
72+
3. Draft [OpenApi specification](documentation/api_design/blo_openapi.json) as an option
7373
3. Preliminary Serverless Application Model template for provisioning APIGateway. Considering Serverless Framework as an alternative that makes possible carbon aware computing patterns in future.
74-
4. [GraphQL specification](documentation/data_layer/api_design/blo2023_amplify_schema.graphql) for use with AWS Amplify with a [DynamoDB back end](documentation/data_layer/databases/dynamodb/)
75-
5. Prototype [React upload form for a new BLO metadata app](blo-app) powered by GraphQL API and DynamoDB backend
74+
4. [GraphQL specification](documentation/api_design/blo2023_amplify_schema.graphql) for use with AWS Amplify with a [DynamoDB back end](blo-backend/databases/dynamodb/)
75+
5. Prototype [React upload form for a new BLO metadata app](frontend) powered by GraphQL API and DynamoDB backend
7676
6. Coded and provisioned transitional [serverless Lambda function](serverless-functions) to be able to use the legacy BLO edit functionality to add new materials and have the rendered page added to the S3 static clone until the new app is fully functional
7777

7878
### Documentation work to date

amplify/.config/project-config.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

amplify/backend/api/BLOApi/parameters.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

amplify/backend/api/BLOApi/stacks/CustomResources.json

Lines changed: 0 additions & 58 deletions
This file was deleted.

amplify/backend/api/BLOApi/transform.conf.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

amplify/backend/auth/bloapi8fe3cf27/cli-inputs.json

Lines changed: 0 additions & 48 deletions
This file was deleted.

amplify/backend/backend-config.json

Lines changed: 0 additions & 65 deletions
This file was deleted.

amplify/backend/tags.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

amplify/backend/types/amplify-dependent-resources-ref.d.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

amplify/cli.json

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)