GithubHelp home page GithubHelp logo

tinybirdco / real-time-inventory-management-system Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 28.72 MB

This repo contains an eCommerce demo to show a very basic example of real-time inventory management using Tinybird to ingest data, transform it, and publish endpoints. The demo is built using Svelte and Tailwind CSS.

Home Page: https://real-time-inventory-management-system.vercel.app/inventory

License: MIT License

Shell 0.79% JavaScript 28.06% CSS 0.09% HTML 0.42% Svelte 70.63%
inventory-management svelte tinybird

real-time-inventory-management-system's Introduction

Slack Status

Real-time inventory management demo

This repo contains an eCommerce demo to show a very basic example of real-time inventory management using Tinybird to ingest data, transform it, and publish endpoints. The demo is built using Svelte and Tailwind CSS.

It is deliberately simple to be quickly showable in a demo.

You can visit the deployed apps here:

Requirements

  • Node.js < v. 18
  • Python < v. 3.8

Getting Started

Data

  1. Setup your Tinybird account

Click this button to deploy the data project to Tinybird ๐Ÿ‘‡

Deploy to Tinybird

Follow the guided process, and your Tinybird workspace is now ready to start receiving events.

  1. Setup this repository locally
git clone https://github.com/tinybirdco/real-time-inventory-management-system
cd signatures-POC
  1. Install dependencies
npm install
  1. Setup Tinybird CLI

The install script above will automatically install and configure the tinybird-cli for this project.

Choose your region: 1 for us-east, 2 for eu. A new .tinyb file will be created.tb

Go to https://ui.tinybird.co/tokens and copy the token with admin rights.

โš ๏ธWarning! The Admin token, the one you copied following this guide, is your admin token. Don't share it or publish it in your application. You can manage your tokens via API or using the Auth Tokens section in the UI. More detailed info at Auth Tokens management

This script will also push the data project to your Tinybird workspace.

  1. Start generating data!

In the terminal, run the following command:

npm run seed

Go to your Tinybird workspace and check the data is flowing.

Frontend

Once you have your backend setup, and you have data from the data generator, you can start the front end.

  1. Go to the frontend directory
cd frontend
  1. Install dependencies
npm install
  1. Create the .env file
cp .env.example .env

Then be sure to paste the admin token from Step 3 into the .env file.

  1. Run the app locally
npm run dev
  1. Open http://localhost:5173 with your browser to see the result.

Data

The data used in this demo is stored in the data-generator directory.

The data is generated using a Javascript script that uses the Faker library to generate fake data for this demo. The script is run using the npm run seed command.

License

This project is licensed under the MIT License.

Contributors

We welcome contributions from the community! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository
  2. Create a new branch: git checkout -b feature/your-feature-name
  3. Make your changes and commit them: git commit -am 'Add your feature'
  4. Push the changes to your branch: git push origin feature/your-feature-name
  5. Open a pull request on GitHub

Feedback and Support

If you have any questions, feed back, or need support, please open an issue.

Need help?

โ€ข Community Slack โ€ข Tinybird Docs โ€ข

Authors

real-time-inventory-management-system's People

Contributors

davidnmargulies avatar gnzjgo avatar jimmoffitt avatar joekarlsson avatar radchukd avatar rmorehig avatar sdairs avatar

Watchers

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