Mayank0255 / Stackoverflow-Clone-Frontend

Clone project of a famous Q/A website for developers built using MySQL, Express, React, Node, Sequelize :globe_with_meridians:
https://stackoverflow-clone-client.vercel.app
MIT License
546 stars 209 forks source link

[Fullstack]: Implement voting for answers #12

Open gooddaytoday opened 4 years ago

gooddaytoday commented 4 years ago

As i see, it's need to:

  1. Add vote counting for answers in database
  2. Add handling of voting on client and saving to DB on server.
gooddaytoday commented 4 years ago

@Mayank0255 Can I do it?

Mayank0255 commented 4 years ago

@gooddaytoday The thing is that I have setted some restrictions to the app right now. So, for now I won't be allowing more functionalities to this.

gooddaytoday commented 4 years ago

Ok, will restrictions eliminate soon? Or you don't want to implement functionality right now?

Mayank0255 commented 4 years ago

So, the thing is that I may remove the restriction later on but I usually don't allow anyone to contribute that big like adding a functionality. I like to do that myself as I am a student right now and I wanna learn everything in my domain.

I hope you understand that.

Mayank0255 commented 3 years ago

Hi @gooddaytoday

Sorry, it took me a lot of time to go over this and finally I am ready to remove the restriction on the project and make it fully open source 🎉🎉

So, would like to implement this feature on the repo? I can just reopen it and assign this to you then.

alceil commented 2 years ago

Is anobody working on this issue?

Mayank0255 commented 2 years ago

@alceil Sure, go ahead

alceil commented 2 years ago

Can anyone brief this issue a bit? handling of upvoting can be done in the front end. But to handle the db part I need to add changes in the back end too right? @Mayank0255

Mayank0255 commented 2 years ago

@alceil yes changes in backend will also be required as there isn't any table there at the moment which keeps track of the votes.

And to begin with this I think adding voting to the questions only is satisfactory at the moment, later on we can go towards adding voting to answers as well. So, connecting the voting table with the post/question table would be required only, like suppose using postId as the foreign key

Mayank0255 commented 2 years ago

@alceil you can refer to this https://data.stackexchange.com/stackoverflow/query/new

This is the querying website of the original stackoverflow which helps you test out SQL queries on there database and on the right side it also displays all the schemas.

You can check out how they have implemented voting in the backend and how is there architecture to refer.

If you get stuck anywhere or have any other queries then I am always there here or reach out to me on my discord Shadowsaver#9665

alceil commented 2 years ago

Sure. Thanks ;)

alceil commented 2 years ago

I'm facing some problems when I set up the project locally. Can you help me out? And I need to run the backend too in another terminal right for the APIs to work.? @Mayank0255

Mayank0255 commented 2 years ago

@alceil yes you need to run both the servers, backend first then frontend

alceil commented 2 years ago

okay got it

shekharsalagar007 commented 2 years ago

@Mayank0255 Can I work on this issue? Please assign it to me.

Mayank0255 commented 2 years ago

@shekharsalagar007 I noticed that you have recently joined Github and I am not too sure whether you will be suitable for this issue as this one has help-wanted label on it. So, if you are confident into doing this then I would recommend make a PR and I will review and merge it, I won't be assigning it to you till then as then it would just keep other contributors away from it and I don't want that to happen. I hope you understand.

shekharsalagar007 commented 2 years ago

Sure Thanks.

github-actions[bot] commented 2 years ago

Stale issue message

joshnho commented 1 year ago

Is this issue being worked on ?

Mayank0255 commented 1 year ago

@joshnho No, it isnt. Are you interested in picking it up?

joshnho commented 1 year ago

Yes I would like to work on it starting tonight

Mayank0255 commented 1 year ago

@joshnho Sorry for the late reply, but ya go ahead. Let me know if you face any issues

Mayank0255 commented 1 year ago

@joshnho Hoping everything is going fine with the task, let me know if you get stuck anywhere

ayushnau commented 1 year ago

@Mayank0255 can I work on this issue. Please assign this to me.

Mayank0255 commented 1 year ago

@Ayush2020012016 Sure, go ahead

Any idea that how much time will it take you to do this?

Mayank0255 commented 1 year ago

@Ayush2020012016 how's the progress on this?