This repository contains a web application for visualizating the employees of Factored.
- The frontend was build with
React
usingTypescript
. 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.
This project was built for running on Docker using Docker Compose.
Next, I am going to explain how to run it easily:
If you are using Windows as you PC operating system, then Install WSL:
-
Open PowerShell or Windows Command Prompt in administrator mode by right-clicking and selecting "Run as administrator"
-
In the opened command line, write the
wsl --install
command and press enter.wsl --install
-
Wait for the installation to finish.
-
Then, restart your PC. You can find more information on How to install Linux on Windows with WSL official guide from Windows, if needed.
-
Go to Get Started with Docker
-
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.
-
Open the downloaded "Docker Desktop Installer" and give permission to your PC to execute it if a banner ask this to you.
-
Docker will open an installation window. Left the checked checkboxes as default and proceed to installation.
-
Wait for the installation to finish.
-
If you are asked to log out of your user Windows session, then do it and enter again.
-
Open the Docker Desktop application in you PC.
-
Accept the Docker Suscription Service Agreement.
-
In the login panel select "Continue without sign in".
Go to Learn How to install Docker guide if needed.
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
-
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.
-
Clone this repository
git clone --recurse-submodules https://github.com/sebasnop/factored-assessment.git
-
Navigate to the Project Directory
cd factored-assessment
-
Run docker compose command
docker-compose up --build
-
Wait for the process to complete.
-
Access the application on your web brower using the next URL:
For viewing the employees, use the next credentials on login page (Login) form:
-
email:
admin@factored.ai
-
password:
admin
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:
Sebastian Valencia Zapata sevalenciaz@unal.edu.co