DEV Community

Cover image for How I built a Web Application in 2 days.
Saugaat Allabadi
Saugaat Allabadi

Posted on

How I built a Web Application in 2 days.

This is my first attempt at building a real-life Frontend focused project named “Know Your Borders”.

app logo

Visit the demo site —

https://saugaatallabadi-know-your-borders.vercel.app

🤌 What is it?

Know Your Borders is a web application built using NextJS, which gives you a list of all countries in the world with some fields like -

  • Population
  • Area
  • Gini coefficient
  • Languages
  • Currencies
  • Neighboring countries

and much more…

desktop-screenshot

🏗 How it’s made?

Tech used: HTML, CSS, JavaScript, NextJS Framework, REST APIs

Credit where it’s due, I noticed the project ‘world-ranks’ by @nghiemthu, and I knew this was a good starting point for me learning NextJS. So I decided to fork his repository and get started from there.

However, since that project was built a year ago, the APIs were outdated and some other issues had come up and I felt this might be a good opportunity for me to build off of an open-source project and enhance it.

That’s when I decided to rebrand it to “Know Your Borders”.

Know Your Borders is a two-page web application (responsive) with a list view of all countries and simple navigation to the detail page of each country.

mobile-screenshot-with-dark-mode

📖 Lessons Learned

This project acted as my introduction to front-end technologies, especially in NextJS.

This project taught me about:

  • Data sorting, filtering
  • Responsive Layout without any CSS framework
  • Dark/Light Mode
  • Server-side rendering
  • Deploying with Vercel

📸 Screenshots

Take a look at these couple screenshots from the app (mocked) -

mobile-view-light-mode

mocked-one

mocked-two

📶 What’s Next?

No project is perfect. There’s always some optimization, some refactoring to do, and that certainly is the case with this project as well. Even though this application works as expected, we can certainly make it even better, faster, prettier.

If you feel the need to make it better, be my guest. Feel free to fork the repository and add your own flavor to it. After all, that’s what the open-source community is all about.

🏁 Getting Started

https://github.com/saugaatallabadi/know-your-borders

After you clone/fork the above repository from Github-

Install all node dependencies:

npm install
Enter fullscreen mode Exit fullscreen mode

Then, run the development server:

npm run dev
Enter fullscreen mode Exit fullscreen mode

Open http://localhost:3000 with your browser to see the homepage

and viola! 🪄

Originally published at https://www.saugaatallabadi.com on January 23, 2022.

Top comments (0)