Skip to content

SarahBurman/tree

Repository files navigation

This project is an application that emulates a file system search, consisting of a client and server.

Server
The server is implemented using Express API and provides a single URL endpoint.

API Endpoints
GET /files: Returns the entire file system structure as JSON data. GET /files?q=: Returns directories, subdirectories, and files that match the specified prefix.

Client
The client-side of the application is implemented using Angular, following industry best practices.

Features

  • Single-page application with a centralized user interface.
  • Displays the file system structure obtained from the server.
  • Provides a text input that triggers a request to the server and dynamically updates the Tree View based on the input.

During the development process, the following assumptions were made:

  • The server utilizes a predefined JSON data structure to represent the file system - the structer was an array of directoried, where a directory looks like this in the server:
interface Directory = {
    name: string,
    files: Array<string>,
    directories: Array<Array<Directory>>

}
  • In the client the structer was flattered a bit.
  • The client application is a single-page application without any router configuration.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published