Giter Site home page Giter Site logo

felipeg-almeida / full-stack-test Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 278 KB

Load, visualize, and search preformatted CSV data effortlessly with this web application. Convert your CSV file into interactive cards displayed on the website and easily find specific data using the integrated search feature.

TypeScript 62.92% JavaScript 5.61% HTML 3.83% CSS 27.63%
csv express nodejs react typescript

full-stack-test's Introduction

CSV Data Viewer

This web application allows users to load a CSV file with preformatted data and display the data as cards on the website. Users can also search for data within the loaded CSV file using a search bar.

Table of Contents

Getting Started

Prerequisites

To run this application, you need to have the following installed on your system:

Installation

  1. Clone this repository:

    git clone https://github.com/FelipeG-Almeida/full-stack-test.git
    cd full-stack-test
  2. Install the dependencies for both frontend and backend:

    # Install frontend dependencies
    cd frontend
    npm install
    
    # Install backend dependencies
    cd ../backend
    npm install

Usage

Frontend

  1. Start the frontend development server:

    cd frontend
    npm run dev
  2. Open your browser and navigate to http://localhost:4000 to access the frontend of the application.

  3. Use the "Load CSV" button to load a CSV file from your local machine.

  4. Enter search terms in the search bar to filter the displayed cards based on your search.

Backend

  1. Start the backend server:

    cd backend
    npm run dev
  2. The backend will run on http://localhost:3000.

  3. Use the following endpoints:

    • POST /api/files to upload a CSV file.
    • GET /api/users?q=<searchTerm> to search through the loaded CSV data.

Screenshots

Desktop:

desktop

Mobile:

Technologies Used

  • Frontend: React, TypeScript
  • Backend: Node.js, Express, TypeScript
  • Testing: Jest

Testing

Here's the coverage from the project:

coverage

Observations

Given the project instructions, I assumed that the CSV file would have the same structure as the provided example. As a result, I created a "mocked" database structure to match the given structure. However, it is entirely possible to add a bit more complexity and allow for any CSV with any number of columns to be provided.

full-stack-test's People

Contributors

felipeg-almeida avatar

Watchers

 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.