Git Product home page Git Product logo

car_data's Introduction

Car data

How to run the server

Installation

Use the following command to download all the dependencies:

"npm install"

This command will read the package.json file and install all the required packages listed there. Make sure you have Node.js and npm installed on your machine.

Usage

To run the server in development mode, use the following command:

"npm run dev"

This command will start the server using the configured script in the package.json file.

Overview

In this coding challenge, I had the opportunity to learn and work with Node.js and Express for the first time. Using my newly acquired skills, I successfully built a RESTful API using Express and CORS. The API provides users with the ability to access information about cars and add new cars to our database via HTTP requests. Specifically, the API supports GET requests to retrieve information about all cars or a specific car by ID, and POST requests to add new cars to the database. To implement this functionality, I used the cars.json file as the initial database and included error handling to prevent the addition of duplicate car names or non-existent car IDs. Additionally, I incorporated middleware to handle JSON data sent from the client.

Improvement

While I was able to successfully implement the GET and POST methods, I was not able to include the PATCH and DELETE methods due to time constraints and a limited understanding of their implementation. However, I plan to continue learning and improving my skills in these areas in order to enhance the functionality and usability of my future projects.

car_data's People

Contributors

doheelee0328 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.