This project consists of a Flask-based server that provides forecasts about the departure of customers from the RZD. It includes a Reactos web interface and a Python backend that uses a pre-trained model for forecasting.
├── site/ # Frontend code
└── server/ # Backend code
ㅤㅤㅤ├── dist/ # Compiled code
ㅤㅤㅤ├── functions.py
ㅤㅤㅤ├── model.py
ㅤㅤㅤ└── runserver.py \
- ReactJS
- SASS, Bootstrap
- Python 3.8
- Flask, Pandas, Numpy
- LightGBM, XGBoost, CatBoost.
- Clone this repository:
git clone <repository-url>
cd <project-directory>- Install frontend dependencies:
cd site
npm install- Install backend dependencies:
cd ../server
pip install -r requirements.txt- Build the frontend:
cd site
npm run build
npm run postbuild- Build the backend:
cd ../server
pyinstaller --name runserver --onefile runserver.pyAfter building, you can run the application by executing the compiled runserver file in the server/dist directory.
On Windows:
server\dist\runserver.exe
On macOS/Linux:
./server/dist/runserver
The server will start and automatically open a web browser to http://127.0.0.1:5000/index.html.
GET /data/<location>: Returns the top 20 companies for which the forecast of leaving RZD is the highest