Git Product home page Git Product logo

tsunamideal-singlestoredb's Introduction

TsunamiDeal

Link to the platform: https://tsunamideal-singlestoredb.herokuapp.com/

About

An e-commerce website built using React.js with voice chat and fuzzy search, with real transactions implemented.

Originally implemented in PostgreSQL, this application has been migrated to SingleStore.

Instructions To Run

The website and the database have been completely hosted online. Use the link to run the application directly on your browser.

To run it locally, follow the steps below:

  1. Clone the repository. All deployment files are inlcuded (for example, .env and firebase credentials).
  2. The database is already initialized. In order to start from the beginning and use a different workspace, add your database credentials in the uploaded .env file and initialize the SingleStore database by running:
$ node initialize

Before running the above command, make sure to change the file name to './database_schemas/create_tables.sql' first and then to './database_schemas/load_data.sql'. In more details, change "<your_path>" in the following code section of initialize.js:

fs.readFileSync("<your_path>")
    .toString()
    .replace(/\r\n/g, "")
    .split(";")
    .forEach(function (query) {
      if (query.length > 0) {
        initQueries.push(query);
      }
    });
  1. Open a terminal window and run the following:
$ npm install
$ npm run client-install
$ npm run dev
  1. A new browser window will open up with the website running in the local machine.

Databases Used

SingleStoreDB has been used. This application has been migrated from PostgreSQL to SingleStore. However, the authentication and OTP functionalities have been implemented using Firebase services.

Architectural Diagram of the Database

image

tsunamideal-singlestoredb's People

Contributors

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