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

Migrate NTT to Chalice from flask/ec2 #205

Merged
merged 5 commits into from
Jun 6, 2024

Conversation

devinmatte
Copy link
Member

@devinmatte devinmatte commented Jun 4, 2024

Motivation

NTT currently costs a decent amount per month to run, Chalice would make it near free

It should also fix

Changes

  • Moves from Flask to Chalice
  • Deploy as a Chalice app
  • Build react with vite like we do other apps to reduce complexity
  • Improve loading experience when waiting for data

Testing Instructions

Visit beta

@github-actions github-actions bot added dependencies Changes to dependencies ci/cd Affects or Updates CI/CD frontend Change to frontend code backend Change to backend code labels Jun 4, 2024
Copy link
Contributor

@idreyn idreyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to have this running on the same stuff as our other stuff! Chalice (and its cron decorators) seems like a good fit for the last-seen functionality in particular.

I haven't given this a line-by-line review but if it's working then I say ship it.

aria-label={line.name + ' line'}
className="icon"
style={{ backgroundColor: line.color }}
<TabProvider>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does adding TabProvider do, out of curiosity?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's required to store the state in the new version of the library (uses react hook state instead of older state.

@devinmatte devinmatte merged commit 48362a7 into transitmatters:main Jun 6, 2024
3 checks passed
@devinmatte devinmatte deleted the migrate-to-chalice branch June 6, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Change to backend code ci/cd Affects or Updates CI/CD dependencies Changes to dependencies frontend Change to frontend code
Projects
None yet
2 participants