Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue end-to-end prototype #30

Open
1 task
rimutaka opened this issue Feb 8, 2022 · 2 comments
Open
1 task

Vue end-to-end prototype #30

rimutaka opened this issue Feb 8, 2022 · 2 comments

Comments

@rimutaka
Copy link
Member

rimutaka commented Feb 8, 2022

Build a simple end-to-end prototype using Vue with the following functionality:

  • employer login via LinkedIn

  • parsing of JWT token by Lambda

  • returning a GraphQL response with homepage data

  • move custom styles from App.vue to a shared space to match HTML UI styles

rimutaka added a commit that referenced this issue Feb 8, 2022
* copied it from html_ui crate
* updated to the latest lambda proxy
* removed all unused mods
* updated naming and ReadMe
rimutaka added a commit that referenced this issue Feb 8, 2022
* moved types into a separate file
* added a dummy http_options_response
* made response body optional
rimutaka added a commit that referenced this issue Feb 9, 2022
rimutaka added a commit that referenced this issue Feb 9, 2022
* linkedin login on open
* a dummy GQL request / response / display
* a dummy homepage
rimutaka added a commit that referenced this issue Feb 9, 2022
* added Keats/jsonwebtoken crate
* added env vars for JWT decoding
* validating JWT and its contents, possibly incomplete
* copied Config from html_ui crate
@rimutaka
Copy link
Member Author

rimutaka commented Feb 9, 2022

  • validate JWT contents in Vue to give an informative error about name / email completeness
  • use a custom Validation config object for time leeway

rimutaka added a commit that referenced this issue Feb 11, 2022
It's very much unfinished.

* split ES types in stm_shared into separate mods
* made ES search generic over <T>
* added simple_error crate to create Lambda errors
* copies ES from html_ui into GQL UI crate
rimutaka added a commit that referenced this issue Feb 14, 2022
* an untidy, but functional version
* replaced usize with u64 thruout
@rimutaka
Copy link
Member Author

rimutaka commented Feb 15, 2022

  • reuse GQL schema between calls (RootNode::new_with_scalar_value)
  • understand why we need this in fn deserialize:
            fn visit_u64<E: de::Error>(self, b: u64) -> Result<Self::Value, E> {
                // I do not understand why this IF is needed
                if b <= u64::from(u32::MAX) {
                    self.visit_i32(b.try_into().unwrap())
                } else {
                    Ok(RustScalarValue::U64(b))
                }
            }

rimutaka added a commit that referenced this issue Feb 15, 2022
* removed HTML minify
* added sample requests and responses
* removed unused members from API GW request struct
* renamed and restructured the GQL part
rimutaka added a commit that referenced this issue Feb 15, 2022
* auth token fix
* single GQL query
* homepage with devsPerLanguageQuery
rimutaka added a commit to stackmuncher/stm_app that referenced this issue Feb 28, 2022
rimutaka added a commit that referenced this issue Mar 13, 2022
rimutaka added a commit that referenced this issue Mar 16, 2022
rimutaka added a commit that referenced this issue Mar 17, 2022
It was failing to build or run or work with apollo.
rimutaka added a commit that referenced this issue Mar 18, 2022
* allow JS in TS
* enforce TS in Vue components
* added Vuex (WIP)
It builds, loads GQL, but Vuex is not used.
rimutaka added a commit that referenced this issue Mar 21, 2022
* login works
* GQL works
rimutaka added a commit that referenced this issue Mar 28, 2022
* unfinished version with an interactive search form
rimutaka added a commit that referenced this issue Mar 29, 2022
* moved schema and samples to samples folder
* tidied up elastic.rs
* added everything needed for a parametrized devCountForStack query
rimutaka added a commit that referenced this issue Mar 29, 2022
rimutaka added a commit that referenced this issue Mar 31, 2022
* sends GQL queries in a sequence to work with Lambda Debug Proxy
rimutaka added a commit that referenced this issue Mar 31, 2022
rimutaka added a commit that referenced this issue Apr 7, 2022
* rust 2021 upgrade
* updated GQL schema
* added / updated GQL output samples
* added config::init_logging for #test code
* lazy no_sql_string_invalidation_regex
* lang and pkg dev count
* added keyword suggester
rimutaka added a commit that referenced this issue Apr 7, 2022
rimutaka added a commit that referenced this issue Apr 10, 2022
* numbers are properly formatted
* removed unnecessary Ref() wrappers
rimutaka added a commit that referenced this issue Jun 1, 2022
* updated schema
* added ES response sampling to tests
* devListForStack GQL sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant