Coder Social home page Coder Social logo

exoveserver's Introduction

Data Retrieval and Storage Project

This project involves writing code to fetch data from a product API (URL) and save it into a local SQL database. It also addresses several additional requirements for a more advanced solution. The key features and tech stack for this project are as follows:

  • Tech Stack:
    • MySQL 5.7 and above
    • Node.js 18 and above

Installation

  1. Clone the project from the repository.

  2. Install the required Node modules:

    npm install

Run the server

node server.js

database

Database script can be found in a file called 'database.sql'

Key Features

Data Retrieval and Storage

  • The project fetches data from a product API using Axios.
  • It also retrieves data from a local SQL database using MySQL.

Handling Hierarchical Data

  • The project figures out a way to handle hierarchical data, such as product variations and categories.

Schemaless Data Handling

  • It addresses schemaless data handling, specifically for variations. Variations may have dynamic key-value pairs.

Translations Support

  • The database schema supports translations, even though the API doesn't provide them.
  • It uses ISO 639-1 language keys for translations.

Support for Extra Currencies

  • The project includes support for multiple currencies in the database.
  • It uses 'EUR' as the default currency.

Incremental Data Update

  • The project ensures that it only updates parts of the product data that have changed, avoiding the need to re-save everything.

Handling Objects without IDs

  • The solution gracefully handles cases where not every object has an ID. Usage The project is designed to run automatically at specific intervals, ensuring that your local database stays up to date with the data from the API. The data update interval is set to 8 seconds.

Feel free to explore and experiment with the code to understand how it retrieves and stores data, handles schemaless variations, and supports translations and multiple currencies.

Enjoy working with the Data Retrieval and Storage Project!

exoveserver's People

Contributors

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