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

Non-Functional Buy Page #10

Merged
merged 1 commit into from
Sep 14, 2024
Merged

Non-Functional Buy Page #10

merged 1 commit into from
Sep 14, 2024

Conversation

mads256h
Copy link
Owner

@mads256h mads256h commented Sep 12, 2024

front page

Add a page where users can see available products and buy them using the
quick-buy field.
If the user just types in their user name they get presented with a
clickable product menu where they can buy products.
Otherwise they can use the multi-buy functionality to buy multiple
products at once.

The buying functionality is NOT implemented in this PR and as such
usernames and products are not validated in the quick-buy query.

Changes:

  • Add products table
  • Add quick-buy parser
  • Add streg cents
  • Add CI format and linter checks
  • Add scripts for starting and stopping a docker image with an empheral
    postgres database (gets cleared on stop)
  • Add script for adding sample data to the database
  • Serve files from the /static directory (should be done with a reverse
    proxy like nginx in production)

@mads256h mads256h force-pushed the buy-page-non-functional branch 4 times, most recently from 772729d to 48d282f Compare September 14, 2024 09:10
@mads256h mads256h marked this pull request as ready for review September 14, 2024 09:10
@mads256h mads256h force-pushed the buy-page-non-functional branch 4 times, most recently from 86a5dc1 to 4184fdb Compare September 14, 2024 09:26
Add a page where users can see available products and buy them using the
quick-buy field.
If the user just types in their user name they get presented with a
clickable product menu where they can buy products.
Otherwise they can use the multi-buy functionality to buy multiple
products at once.

The buying functionality is NOT implemented in this PR and as such
usernames and products are not validated in the quick-buy query.

Changes:
- Add products table
- Add quick-buy parser
- Add streg cents
- Add CI format and linter checks
- Add scripts for starting and stopping a docker image with an empheral
  postgres database (gets cleared on stop)
- Add script for adding sample data to the database
- Serve files from the /static directory (should be done with a reverse
  proxy like nginx in production)
src/dso/product.rs Outdated Show resolved Hide resolved
src/dso.rs Outdated Show resolved Hide resolved
src/main.rs Show resolved Hide resolved
@mads256h mads256h force-pushed the buy-page-non-functional branch from 4184fdb to 1702e71 Compare September 14, 2024 09:34
@mads256h mads256h changed the title Buy page non functional Non-Functional Buy Page Sep 14, 2024
Copy link
Collaborator

@henneboy henneboy left a comment

Choose a reason for hiding this comment

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

Lgtm. Maybe next time make smaller PRs? :)

src/components/product_menu_components.rs Show resolved Hide resolved
@mads256h mads256h merged commit 24708c7 into master Sep 14, 2024
1 check passed
@mads256h mads256h deleted the buy-page-non-functional branch September 14, 2024 09:51
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

Successfully merging this pull request may close these issues.

2 participants