Development of Utopian Reviews

in #utopian-io7 years ago

Repository

<p dir="auto"><span><a href="https://github.com/utopian-io/review.utopian.io" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/utopian-io/review.utopian.io <h3>New Projects <ul> <li>What is the project about? <p dir="auto">This project was made to make Utopian reviews easy by providing a questionnaire and to maintain the transparency of the review it generates a result of the questionnaire for the contributors to check out. <p dir="auto">One of the interesting parts was to not use a database for storing the answers to the questionnaire and allow users to know the answers to it without it. <p dir="auto">For it, I made a route which can generate a reviews answer page based on the URL. <pre><code>router.get('/result/:cat/:num', function (req, res, next) { let category = req.params.cat; let ans = req.params.num; if(category < 0 || category > 11) res.render('error') cat = questionnaire[category]; let object= []; for (var i = 0; i < cat.length; i++) { obj = {}; obj.question = cat[i].question; obj.answer = cat[i].answers[ans.charAt(i)] object.push(obj) } console.log(object); res.render('result', {object: object}) }) <p dir="auto">This route handles the URL and makes a result object and passes to template. <p dir="auto">That result object is server side rendered and sent to browser. <p dir="auto">Some screenshots of the webapp are attached below - <p dir="auto"><strong>Home Page <p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmbEE1QJAMwEwUS7kapbXzNroRcwhKpXhydYBXRqZ74eF6/Screenshot%20from%202018-05-20%2021-01-41.png" alt="Screenshot from 2018-05-20 21-01-41.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmbEE1QJAMwEwUS7kapbXzNroRcwhKpXhydYBXRqZ74eF6/Screenshot%20from%202018-05-20%2021-01-41.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmbEE1QJAMwEwUS7kapbXzNroRcwhKpXhydYBXRqZ74eF6/Screenshot%20from%202018-05-20%2021-01-41.png 2x" /> <p dir="auto"><strong>Auto Generated Comment <p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmTpXqnw8goakiHHE7kK9CZMQXgi4ENSCgEWeWSrZ1oQ4e/Screenshot%20from%202018-05-20%2021-02-11.png" alt="Screenshot from 2018-05-20 21-02-11.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmTpXqnw8goakiHHE7kK9CZMQXgi4ENSCgEWeWSrZ1oQ4e/Screenshot%20from%202018-05-20%2021-02-11.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmTpXqnw8goakiHHE7kK9CZMQXgi4ENSCgEWeWSrZ1oQ4e/Screenshot%20from%202018-05-20%2021-02-11.png 2x" /> <p dir="auto"><strong>Reviews Result Page <p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmWBmh2EsTid21g83TLmkH5s7QSrHqC2bsAH24RJMAxM6s/Screenshot%20from%202018-05-20%2021-02-45.png" alt="Screenshot from 2018-05-20 21-02-45.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmWBmh2EsTid21g83TLmkH5s7QSrHqC2bsAH24RJMAxM6s/Screenshot%20from%202018-05-20%2021-02-45.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmWBmh2EsTid21g83TLmkH5s7QSrHqC2bsAH24RJMAxM6s/Screenshot%20from%202018-05-20%2021-02-45.png 2x" /> <h3>Technology Stack <p dir="auto">If any app can be made in JS it will always be made in JS :P <ul> <li>NodeJS <li>ExpressJS <li>EJS <h3>How to contribute? <p dir="auto">I am not sure about the future plans of this project but I just turn to add features to it as mods and CMs may ask me to do so ;) <h3>GitHub Account <p dir="auto"><span><a href="https://github.com/ms10398" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/ms10398
Sort:  

You did a great work ms10398. This will have a great impact in using Utopian. I am proud to have people like you. Congraturation and keep it up

Great code of course, very useful in our day to day tasks as moderators.

I would love to see a bunch more commit messages and code comments.

Your contribution has been evaluated according to Utopian rules and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post,Click here



Chat with us on Discord.
[utopian-moderator]Need help? Write a ticket on https://support.utopian.io/.

Yes I know commit messages and comments are really part of development.

But in the heat of the moment I just flew away with my keyboard and didnt took care of commit messages and code comments.

Thanks for the remark I will surely try to follow the best practices as much as I can from now onwards.


Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!Hey @ms10398

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

As this segment is giving a healthy amount of money so it's really important to review properly before publishing any content. It's a great work you did. Best wishes.

You did a coded job. Keep it up.

congratulations, great code, but over to my head