Giter Site home page Giter Site logo

supplier_info's Introduction

Supplier Information Upload

This a project built as part of the interview process for Rundoo. Requirement Link

This project was bootstrapped with Create React App.

This is a web application for managing supplier details. It allows users to create a new supplier by providing their name, logo, and address.

The application is built using the following technologies:

  • React (front-end)
  • TypeScript (front-end)
  • Flask (back-end)
  • SQLite (database)

Installation

To install the application, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/VincentChen0111/Supplier_Info.git
    
  2. Prepare the environments: Node.js ; Python3 ; SQLite3

  3. Install the required dependencies for the front-end and back-end:

    npm install
    pip install -r requirements.txt
    

Development Build

To start the development application, follow these steps:

  1. Start the front-end development server:
    npm start
    

This will start the React development server on port 3000.

  1. Start the back-end development server:
    python ./server/server.py
    

This will start the Flask development server on port 8080.

  1. Open a web browser and navigate to http://localhost:3000 to use the application.

Production Build

To build the application for production, follow these steps:

  1. Build the front-end code:

    npm run build
    
  2. Run the production front-end by code:

    npx serve -s build
    

Usage

  1. The front-end provides a web form for submitting supplier info. This info will be posted to the server side and stored in the sqlite database (./server/database/Supplier.db)
  2. The back-end checks if the logo is correctly an image icon, accept and store in ./server/logos for vaild check, reject otherwise. Note the name of logo will be renamed to the unique company id assigned by the database management.
  3. To check the database, it is suggested to use the DB Browser(SQLite)

Reference

How to build elegant React forms with React Hook Form https://react-hook-form.com/api/useform/ TypeScript and Axios Intro - React Tutorial 54 https://javascript.info/formdata https://pynative.com/python-sqlite-insert-into-table/ How to use REACT HOOK FORM with TYPESCRIPT How To Create An Advanced Shopping Cart With React and TypeScript Sending post data onto Dummy API using React Hooks; Promises with Axios | Explained https://www.digitalocean.com/community/tutorials/how-to-make-a-web-application-using-flask-in-python-3

supplier_info's People

Contributors

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