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 product #9

Closed
wants to merge 13 commits into from
Closed

Create product #9

wants to merge 13 commits into from

Conversation

austenstone
Copy link
Member

This pull request includes significant updates to the Dockerfile for switching the base image and restructuring the build process, as well as the addition of new functionality for creating products in the model/products.js and routes/products.js files.

Environment Change:

  • Dockerfile: Switched the base image from node:19.4.0-bullseye-slim to golang:1.16-buster and commented out the Node.js-specific setup steps.

Feature Addition:

  • model/products.js: Added a create function to insert a new product into the database and updated the actions object to include this new function.
  • routes/products.js: Added a new route /products/create to handle the creation of products, supporting both GET and POST methods. This route extracts product details from the request and calls the create function in db_products.

@austenstone austenstone deleted the create-product branch August 15, 2024 17:30
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.

1 participant