Skip to content

sebasnop/factored-assessment

Repository files navigation

Factored Employees App

This repository contains a web application for visualizating the employees of Factored.

  • The frontend was build with React using Typescript. Also, were used:
    • React routes for React app routing.
    • Material UI for the user interface style system.
    • chart.js & react-chartjs-2 for charting.
  • The backend was build with FastAPI and SQLAlchemy.
    • uvicorn is used for server deployment.

Table of Contents


How to run the project

This project was built for running on Docker using Docker Compose.

Next, I am going to explain how to run it easily:

Install WSL

If you are using Windows as you PC operating system, then Install WSL:

  1. Open PowerShell or Windows Command Prompt in administrator mode by right-clicking and selecting "Run as administrator"

  2. In the opened command line, write the wsl --install command and press enter.

    wsl --install
  3. Wait for the installation to finish.

  4. Then, restart your PC. You can find more information on How to install Linux on Windows with WSL official guide from Windows, if needed.

Install Docker

  1. Go to Get Started with Docker

  2. Press the download button for Download Docker for your operating system. For example "Download for Windows" button if you are using Windows as you PC operating system.

    This will download a "Docker Desktop Installer" file into you pc.

  3. Open the downloaded "Docker Desktop Installer" and give permission to your PC to execute it if a banner ask this to you.

  4. Docker will open an installation window. Left the checked checkboxes as default and proceed to installation.

  5. Wait for the installation to finish.

  6. If you are asked to log out of your user Windows session, then do it and enter again.

  7. Open the Docker Desktop application in you PC.

  8. Accept the Docker Suscription Service Agreement.

  9. In the login panel select "Continue without sign in".

Go to Learn How to install Docker guide if needed.

Install Git

If you don't have Git installed, download it from Git SCM.

You can follow the installation instructions for your operating system on Getting Started - Installing Git

Run the project

  1. Open a Terminal or Command Prompt:

    • On Windows, you can use Command Prompt, PowerShell, or Git Bash.
    • On macOS and Linux, open the Terminal application.
  2. Clone this repository

    git clone --recurse-submodules https://github.com/sebasnop/factored-assessment.git
  3. Navigate to the Project Directory

    cd factored-assessment
  4. Run docker compose command

    docker-compose up --build
  5. Wait for the process to complete.

  6. Access the application on your web brower using the next URL:

    http://localhost:3000

Login credentials

For viewing the employees, use the next credentials on login page (Login) form:

  • email:

    admin@factored.ai

  • password:

    admin

Submodules

Frontend and backend were developed in different repositories. Then, were added as "submodules" on this repository.

You can see them and watch the commits history here:

Author

Sebastian Valencia Zapata sevalenciaz@unal.edu.co

About

Factored Fullstack assessment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published