ngoworldcommunity / NGOWorld-Backend

This is the official repository for Milan's server side codes.
https://api.milanhub.org
MIT License
7 stars 26 forks source link

💡Feature: Creating a new schema for events #26

Closed tamalCodes closed 1 year ago

tamalCodes commented 1 year ago

Description

We need a new schema to be made for the events. These events will be shown later on, and one single club can make multiple events. The properties are mentioned below, more can be added when the PR is made (upon discussion). The file can be made directly in routes > events > EventSchema.js

Properties:

Screenshots

No response

🥦 Browser

Google Chrome

Checklist ✅

github-actions[bot] commented 1 year ago

Hello @tamalCodes, thank you for raising the issue.

Currently, the issue is marked as https://github.com/MilanCommunity/Milan-Backend/labels/%F0%9F%91%B7%F0%9F%8F%BB%E2%80%8D%E2%99%82%EF%B8%8F%20status%3A%20awaiting%20triage which means that work for this issue is on hold and we are waiting for the maintainers/owner to review it and provide you with feedback/suggestions to proceed further.

Feel free to reach out to Tamal on Twitter, or drop a mail at tamalcodes@gmail.com if you think that this issue is of critical priority.

Give us a ⭐ to show some support Happy OpenSource 🚀

tejaskh3 commented 1 year ago

Hey what's up @tamalCodes, if you allow me to do then I will love to do this task.

tamalCodes commented 1 year ago

Hi @tejaskh3 , you can start working on the issue, assigning it to you 🚀

📑 Checklist in case you missed something

Please maintain structure, use conventional pull request titles, and avoid spam to avoid closure or bans.

tejaskh3 commented 1 year ago

Thankyou!!!

tejaskh3 commented 1 year ago

Hey @tamalCodes, I have a small doubt, here you mentioned to make schema in router "The file can be made directly in routes > events > EventSchema.js" is it correct or should i make it in schema>events>EventsSchea.js???

tamalCodes commented 1 year ago

Hey @tamalCodes, I have a small doubt, here you mentioned to make schema in router "The file can be made directly in routes > events > EventSchema.js" is it correct or should i make it in schema>events>EventsSchea.js???

It's a typo from my side, it would have been schema>events>EventsSchema.js Sorry for the confusion, I will update the desc of the issue.

tejaskh3 commented 1 year ago

No issues i already got you. But don't know why I am not able to commit my changes. getting some error, and not able to resolve them yet.

tamalCodes commented 1 year ago

No issues i already got you. But don't know why I am not able to commit my changes. getting some error, and not able to resolve them yet.

Please post the errors. Those maybe related to EsLint ? Make sure you are not putting some extra gaps, or putting unused vars.

tejaskh3 commented 1 year ago
image

This is what i am getting when trying to commit changes.

tamalCodes commented 1 year ago

Can you try clearing the node_modules and package-lock.json file and running npm install again ?

tejaskh3 commented 1 year ago

Tried that too still not working. Also googled a lot.

tamalCodes commented 1 year ago

Maybe this can help ? https://github.com/typicode/husky/issues/1038 Also we love semantic commits so maybe try this too: git commit -m "feat: added event schema"

tejaskh3 commented 1 year ago

Tried this as well, but not working, though the error reduced to one line only from 3, will see it after some time, after finishing this assignment. ;)

tamalCodes commented 1 year ago

I see. Please see to it that you can push the code/make a PR in any way. Would be better if done hastily.

tejaskh3 commented 1 year ago

Okay!!! doing it.