Participating in my first hackathon

Hey there everyone! After a long time I am writing blog 😉 . I recently joined in B.Tech in Computer Science an Engineering in BPPIMT. And I am really happy that couple of months after joining the college I got some cool folks with whom I can discuss about programming and other tech stuff and got a chance to participate in hackathon. It was Hackoverflow organised by NIT Durgapur.

How it started

In my college unofficial group suddenly one of friend messaged that there is a upcoming hackathon on 2nd April organised by NIT Durgapur. So I messaged him about I am interested and he told that. And after that we registered in Devfolio for the event.

What we made

This is most tricky part. Me and Arkaprabha discussed a lot about what we can make for the hackathon. First we decided we could make a open-book website for students. But after that we discovered the sample idea section in their discord channel :p . And we took the idea of making a food post application for leftover food of various events. It had a user authentication and food post CRUD feature and as well as a search feature based on country and city.

What technologies we used

We decided to go with conventional Django approach. And designed the back-end with that and for the front-end we used HTML, CSS and bootstrap. And bootstrap helped us a lot in aligning things. For search we used Django filter package and countries we used django-countries. And we tried to kept the UI simple as possible. Here is github link.

What problems we faced

First while making the back-end I was in a hurry and made the database query wrong and that’s why it was not fetching the user own post and other post properly instead it was fetching all post in the home page. And I discovered it and fixed it by placing user.id .
Second problem we faced was when a user was making a post It was by default saying that the post was made by superuser. And the problem was same I used user instead of user.id and by default in the database file the default value was 1.

What was the result?

And here is the big part the what was the result. And yes we lost XD. But I never regret for the result because I got so many thing to learn and got a idea how hackathon works and After all I enjoyed 😉 . And I will be participating in hackathons in future for sure.

Advertisement

Installation of nodejs in your Debian based system

Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications.

Step 1 – Add node.js PPA

Node.js package is available in LTS and current release.
Use the current release:- in your case if there is any further version available then replace the 12 with your desired version.

$ sudo apt-get install curl python-software-properties
$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash 

Use LTS release:- in your case if there is any further version available then replace the 10 with your desired version.

$ sudo apt-get install curl python-software-properties
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

Step 2 – Install node.js on Ubuntu

You have successfully added the node.js PPA now execute the blow command to install the software.

$ sudo apt install nodejs

Step 3 – Checking your version

Now execute below two commands to check node.js and npm version. In my case I am using the LTS version.

$ node -v
v10.16.0
$ npm -v
6.9.0

Thank you 🙂