Directory Website

I’m going to build a directory website and curious if anyone could suggest which language I should use that would pull the information from a database or JSON file (prefer the later). Right now, I just have static content and use javaScript for a “search” function - using the dropdownbar onChange to redirect them to a specific page. I was thinking of using VueJS. Advice?

2 Likes

well Javascript can read a JSON file, vanilla, with just a couple lines of code.
Vue isnt a language per-se, it’s a framework on top of JS.

2 Likes

Yes, true. I guess to be more clear, I was trying to confirm if VueJS would be just as good as using Python/Django or C#/.NET. I decided to go with VueJS.

1 Like

Use VueJS. It’s great for dynamic web apps and can pull data from JSON files or databases seamlessly. It’ll work well with your current JavaScript setup and offers features like data binding and reusable components. :blush:

1 Like

Using Vue.js for building a directory website that pulls information from a JSON file is a great choice! Vue.js is a powerful and flexible JavaScript framework that is well-suited for building interactive user interfaces and handling data dynamically.

You can easily integrate Vue.js with a JSON file by making HTTP requests to fetch the data and then use Vue.js to render the retrieved data dynamically on your website. Vue.js also provides features like data binding, components, and computed properties that make it easy to manage and manipulate data from a JSON file.

Additionally, Vue.js works well with other libraries and frameworks, so if you already have some JavaScript code for your search function, you can easily integrate it with Vue.js.

Overall, Vue.js would be a suitable choice for your directory website, providing you with the flexibility and tools you need to build a dynamic and interactive website that pulls information from a JSON file.

2 Likes

Thank you.

1 Like

JSON is the type of thing that a beginner might think is easier but then they end up doing more work than if they used something more commonly used, a database in this context. We do not know the details of the requirements therefore we cannot provide relevant guidance. One important criteria is how dynamic or static the data is. If the data is relatively static and consists of rows with the same fields in every row then a formatted file, such as CSV, might be better.

1 Like

Ah! good idea about the CSV. Thanks!

1 Like