Coder Social home page Coder Social logo

hararghe-farm's Introduction

Hararghe Farm

Hararghe Farm is a Node.js web application that provides information about different vegetables, including their nutrients, quantity, price, and description. The application parses the data from a JSON file and replaces the placeholders in an HTML template with the properties of the vegetables.

Installation

To install and run the Hararghe Farm application, you will need to have Node.js and npm (Node Package Manager) installed on your computer. You can download and install Node.js from the official website: https://nodejs.org/

Once you have Node.js and npm installed, you can clone the repository or download the source code from GitHub:

git clone https://github.com/your-username/hararghe-farm.git

After downloading the source code, navigate to the project directory and install the dependencies using npm:

cd hararghe-farm
npm install

Usage

To start the Hararghe Farm application, run the following command in the project directory:

npm start

This will start the server and make the application available at http://localhost:8080/.

When you visit the application in your web browser, you will see a list of vegetables with information about their nutrients, quantity, price, and description. The data is loaded from a data.json file located in the dev-data directory.

If you want to modify the data, you can edit the data.json file and restart the server to see the changes.

Technologies Used

The Hararghe Farm application was built using the following technologies:

  • Node.js: A JavaScript runtime that allows you to run JavaScript code outside of a web browser.
  • HTML: The standard markup language used to create web pages.
  • CSS: The style sheet language used to describe the presentation of HTML documents.

html5 css3 nodejs npm

What I Learned

In the process of building the Hararghe Farm application, I learned the following concepts and technologies:

  • Creating a Node.js server using the http module and the createServer method.
  • Routing requests and giving responses from the server.
  • Reading and writing files using the fs (file system) module.
  • Parsing JSON data using the JSON.parse method.
  • Building a simple API using Express.js.
  • Understanding the blocking and non-blocking nature of asynchronous code in Node.js.
  • Using the URL module to parse URL parameters and query strings.
  • Reading npm package documentations.
  • Using the slugify module to create url friendly slugs.
  • Major, Minor and patch releases in version number.
  • How to update and delete packages.

Credits

The Hararghe Farm application was built as part of the "Node.js, Express, MongoDB & More: The Complete Bootcamp 2023" course on Udemy by Jonas Schmedtmann.

License

This project is licensed under the MIT License - see the LICENSE file for details.

hararghe-farm's People

Contributors

hariyebk avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.