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

[FEAT]: Add Module for Products #131

Open
derianrddev opened this issue Feb 9, 2025 · 9 comments · May be fixed by #145
Open

[FEAT]: Add Module for Products #131

derianrddev opened this issue Feb 9, 2025 · 9 comments · May be fixed by #145
Assignees
Labels
backend difficult: medium enhancement New feature or request help wanted Extra attention is needed

Comments

@derianrddev
Copy link
Contributor

derianrddev commented Feb 9, 2025

📘 Description

We need to create a module for managing products, following the structure used in the categories module. This will allow querying and managing products efficiently.

Acceptance Criteria

  • Add the Prisma model for Product with the following fields:
    • id (String, primary key)
    • name (String)
    • slug (String, unique)
    • description (String)
    • price (Float)
    • categoryId (String, foreign key referencing Category)
    • category (Relation to Category)
    • images (Relation to ProductImage, one-to-many)
    • createdAt (DateTime, default now())
    • updatedAt (DateTime, auto-update)
  • Implement a GraphQL resolver with the following queries:
    • products: Returns a list of all products.
    • product(id: string): Returns a single product by its ID.
  • Implement a service to handle database interactions.
  • Create a DTO (product.dto.ts) defining the Product structure.
  • Ensure integration with Prisma for database access.
  • Run npx prisma migrate dev --name add_products to create the migration.

🌎 References

📜 Additional Notes

⚠ Please review the following guidelines before applying:

@derianrddev derianrddev added backend difficult: medium enhancement New feature or request help wanted Extra attention is needed labels Feb 9, 2025
@keljoshX
Copy link

keljoshX commented Feb 9, 2025

I would love to tackle this!

@godwinameh
Copy link

Hi safeSwap i am a software developer with good exprecienc with nestjs skill and love to contribute to your in this area.

i will be grateful if am considered worthy of this issue.

thanks SAFESWAP

@tali-creator
Copy link

I can achieve this in a short time
If am given the opportunity to

@SebasHidalgo
Copy link
Contributor

Hello my name is Sebastián Hidalgo and I am from Costa Rica
As a full-stack developer, I have experience working with NestJS, GraphQL and TypeScript. I have build similar solutions before on other projects.
I’d be happy to collaborate again with this project and ensure it meets the project’s standards.

@B-uchi
Copy link

B-uchi commented Feb 9, 2025

Could I try solving this?

@OWK50GA
Copy link

OWK50GA commented Feb 9, 2025

Hi, I'm Wilfrid Okorie a Fullstack Web Developer and I'd like to take this issue as an opportunity to contribute to this project

@TheRanomial
Copy link
Contributor

Can i work on this issue. I have good hands-on experience with Prisma and GraphQL. I would be able to complete this task in <24 hours.

@Shukazuby
Copy link
Contributor

I’m Zuby, a backend dev with years of experience using Node.js, NestJS, PostgreSQL, and Prisma.

I would love to work on this project

ETA: within 24hrs-48hrs

@Villarley
Copy link

Hi @derianrddev ,
I’m Santiago Villarreal Arley, a proactive and communicative developer with a strong background in both front-end and back-end Web3 development. As a proud Diamond Contributor and member of Dojo Coding, I have collaborated on various impactful projects built on StarkNet and Stellar, focusing on creating scalable and efficient blockchain-based solutions.
Would love to tackle them! I will adhere to

@Villarley Villarley linked a pull request Feb 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend difficult: medium enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants