-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
merge Backend #153
Merged
merge Backend #153
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: tilaprimera <tilaprimera@users.noreply.github.com>
* Fixes #65 - Finish ORM Setup - Ensure we can connect to the DB before launching Express - Use sqlite for normal dev mode; postgres for production - Upgrade sequelize and postgres npm packages since the versions we were using hung trying to connect to pg - Use the sequelize.sync functionality to automatically setup any table(s) * Allow either type of DB in development mode - in dev mode, have default DB_URL of sqlite - in prod, DB_URL must be specified * fix .gitignore to have correct sqlite db name * clean up package.json scripts
…re served by http-server (now using express) (#62)
orm.js updated with model for UserAnswers
* fixed caps lock sync issue, capslock on is a keydown and capslock off is a keyup event * deleted unecesseray if condition in handle function for capslock
Replace repetitive if blocks with lookup
…tcuts-practice into 67__add-post-request
This reverts commit 9c9d786.
Fixes #67: Save answer POST request
…tcuts-practice into 96__retrieve-timing-question
…tcut to the end.
Add highlight for Fn key in case F1-F12 is pressed. Fixes #29
Used serve-icon middleware to serve favicon.
…tcuts-practice into 99__replace_toggle_class
…stion Fix #96: Add ability to retrieve timing history
Fix: #99 Change jquery CSS functions in main.js
Added favicon
* Fixes #74 - fake login/logout for local dev - refactor auth setup so it is the same for the rest of the code regardless if it's fake dev or Auth0 - use express-session with sequelize store to handle sessions (they will persist dev reload) - add dummy login state message to bottom of index page so dev can use login/logout before buttons are added * make .env.example a little more user-friendly * add .git.local ignore so it can be used to switch between Auth0 and local dev without accidentally checking it in * Fully integrate Auth0 and local dev - Auth create user upon login or root request - Protect all /user API routes to need a valid signed-in user or they will respond with 401 - fix ORM data models so they have default values and work correctly with postgres * fix comments
…swers_created_at_user_id
…eries Add indexes: user_answers_created_at_user_id_question_number, user_answers_created_at_user_id
* Fixes #74 - fake login/logout for local dev - refactor auth setup so it is the same for the rest of the code regardless if it's fake dev or Auth0 - use express-session with sequelize store to handle sessions (they will persist dev reload) - add dummy login state message to bottom of index page so dev can use login/logout before buttons are added * make .env.example a little more user-friendly * add .git.local ignore so it can be used to switch between Auth0 and local dev without accidentally checking it in * Fully integrate Auth0 and local dev - Auth create user upon login or root request - Protect all /user API routes to need a valid signed-in user or they will respond with 401 - fix ORM data models so they have default values and work correctly with postgres * fix comments * do not save or fetch data unless logged in * fix get history endpoint to lookup by logged in user id from request * Implements #77 - replaces all localStorage lookups with saved /user/progress API call - remove commented code - add const/let variable declarations when missing * Add API integration specs using jasmine + supertest
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](npm/ini@v1.3.5...v1.3.8) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* - Add login and logout buttons to the top of the main page * - Adjust account-info's margins * - 2nd draft of login button. Account info is centered in the whitespace above the read container Co-authored-by: Jackie Zhang <hausekey@github.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.