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

Create CSXL Bash Script #430

Open
5 tasks
ajaygandecha opened this issue Apr 28, 2024 · 0 comments
Open
5 tasks

Create CSXL Bash Script #430

ajaygandecha opened this issue Apr 28, 2024 · 0 comments
Assignees
Labels
admin Labels major administrative changes to the CSXL site. exploration Used on branches that may not be new features but explores new implementations.

Comments

@ajaygandecha
Copy link
Collaborator

ajaygandecha commented Apr 28, 2024

This ticket explores creating a bash script specific to the CSXL site that would significantly help to simplify the developer experience developing the site - especially as this site continues to grow in size.

It also presents interesting tradeoffs for COMP 423, but makes understanding and working with the CLI easier.

Thoughts

Initial Goals

  • csxl start: Equivalent to running honcho start.
    • csxl start -b, csxl start backend: Starts the backend only.
    • csxl start -f, csxl start frontend: Starts the frontend only, equivalent to ng serve
  • csxl db: Contains different commands for interacting with the database
    • csxl db reset: Equivalent to python3 -m backend.script.reset_demo
    • csxl db reset -t, csxl database reset test: Equivalent to python3 -m backend.script.reset_testing
    • csxl db create: Equivalent to python3 -m backend.script.create_database
    • csxl db delete: Equivalent to python3 -m backend.script.delete_database
    • csxl db view: Opens relevant database viewer for the database
  • csxl test: Runs cd backend; pytest
    • csxl test -c, csxl test coverage: Runs the CSXL testing and determines coverage. Also automatically opens the index.html file that is generated.
  • csxl repl: Opens the repl script that @KrisJordan generated.
  • csxl setup: Completes the initial steps for setup listed in getting_started. Provides clearer error warnings when .env is missing, or auto-generate a blank .env file.

Stretch Goals

  • csxl deploy: Suite of commands relating to the deployment step to OKD. This might help immensely with setup in class - we can still make them go through many steps, such as setting up the pod, route, etc -- and explanations can be provided.
  • csxl db migration: Helper scripts related to generating database migrations with alembic.
@ajaygandecha ajaygandecha added admin Labels major administrative changes to the CSXL site. exploration Used on branches that may not be new features but explores new implementations. labels Apr 28, 2024
@ajaygandecha ajaygandecha self-assigned this Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Labels major administrative changes to the CSXL site. exploration Used on branches that may not be new features but explores new implementations.
Projects
Status: Backlog
Development

No branches or pull requests

1 participant