Stackoverflow-Clone-Frontend icon indicating copy to clipboard operation
Stackoverflow-Clone-Frontend copied to clipboard

[Fullstack]: Implement voting for answers

Open gooddaytoday opened this issue 4 years ago • 26 comments

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 avatar Aug 22 '20 18:08 gooddaytoday

@Mayank0255 Can I do it?

gooddaytoday avatar Aug 22 '20 18:08 gooddaytoday

@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.

Mayank0255 avatar Aug 22 '20 18:08 Mayank0255

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

gooddaytoday avatar Aug 22 '20 19:08 gooddaytoday

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 avatar Aug 23 '20 04:08 Mayank0255

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.

Mayank0255 avatar Feb 27 '21 07:02 Mayank0255

Is anobody working on this issue?

alceil avatar Oct 01 '21 16:10 alceil

@alceil Sure, go ahead

Mayank0255 avatar Oct 02 '21 11:10 Mayank0255

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

alceil avatar Oct 05 '21 11:10 alceil

@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 avatar Oct 05 '21 12:10 Mayank0255

@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

Mayank0255 avatar Oct 05 '21 12:10 Mayank0255

Sure. Thanks ;)

alceil avatar Oct 05 '21 12:10 alceil

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

alceil avatar Oct 05 '21 12:10 alceil

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

Mayank0255 avatar Oct 05 '21 12:10 Mayank0255

okay got it

alceil avatar Oct 05 '21 12:10 alceil

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

shekharsalagar007 avatar Oct 12 '21 12:10 shekharsalagar007

@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.

Mayank0255 avatar Oct 12 '21 14:10 Mayank0255

Sure Thanks.

shekharsalagar007 avatar Oct 12 '21 14:10 shekharsalagar007

Stale issue message

github-actions[bot] avatar Mar 01 '22 23:03 github-actions[bot]

Is this issue being worked on ?

joshnho avatar Sep 23 '22 07:09 joshnho

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

Mayank0255 avatar Sep 23 '22 16:09 Mayank0255

Yes I would like to work on it starting tonight

joshnho avatar Sep 23 '22 17:09 joshnho

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

Mayank0255 avatar Sep 24 '22 06:09 Mayank0255

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

Mayank0255 avatar Sep 26 '22 16:09 Mayank0255

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

ayushnau avatar Oct 12 '22 03:10 ayushnau

@Ayush2020012016 Sure, go ahead

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

Mayank0255 avatar Oct 13 '22 03:10 Mayank0255

@Ayush2020012016 how's the progress on this?

Mayank0255 avatar Oct 16 '22 11:10 Mayank0255