Project UAS Data Mining Lanjut
  • Python 44.7%
  • TypeScript 36.5%
  • Dockerfile 16.6%
  • JavaScript 2.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-28 14:19:56 +08:00
src fix: improve pipeline distribution ordering and response structure 2026-06-28 14:19:56 +08:00
.dockerignore chore(docker): update ignore rules and backend volume mount 2026-05-18 17:59:39 +08:00
.gitignore chore: update .gitignore to exlude pycache 2026-05-09 23:20:36 +08:00
docker-compose.yaml chore(docker): add volume for trained models 2026-06-23 21:40:27 +08:00
Dockerfile build(docker): migrate Next.js and Flask containers to Node.js/npm 2026-05-18 20:01:46 +08:00
eslint.config.mjs chore: init Nextjs project 2026-05-06 19:34:17 +08:00
next.config.ts build(next): enable standalone output 2026-05-10 11:30:35 +08:00
package-lock.json build(deps): remove bun.lock and update package.json scripts 2026-05-18 19:58:04 +08:00
package.json build(deps): remove bun.lock and update package.json scripts 2026-05-18 19:58:04 +08:00
postcss.config.mjs chore: init Nextjs project 2026-05-06 19:34:17 +08:00
README.md docs(readme): add important reference 2026-06-28 10:08:11 +08:00
training_models.md docs: add training and testing result documentation 2026-06-27 19:17:58 +08:00
tsconfig.json chore: init Nextjs project 2026-05-06 19:34:17 +08:00

Klasifikasi Pipeline Model Hugging Face Berdasarkan Metadata Menggunakan Random Forest dan Logistic Regression

What Is This?

Next.js project for the final exam in Advanced Data Mining

Requirements

Make sure you have the following installed on your system:

Git (2.54.0 or newer)
Nodejs (24.16.0 or newer)

How To Run This Project (Locally)

  1. Clone Repo
git clone http://forgejo-domain/bert093/DataMiningLanjut-UAS.git
cd DataMiningLanjut-UAS
  1. Install package/dependency:
npm i
  1. Run the development server:
npm run dev
  1. Run the flask development server:
cd src/backend
flask run

Important

You must run the Next.js and Flask development servers simultaneously for this project to work (open two terminals at the same time).

An alternative method if you want to run this project with Docker (Recommended)
  1. Install Docker

If you're using an Arch Linux-based distribution, you can install it directly by running:

sudo pacman -S docker docker-compose docker-buildx
sudo systemctl enable --now docker # (Enable docker service)
sudo usermod -aG docker $USER # (configure user permission)
newgrp docker # (applying changes. MUST RESTART after doing this)
  1. Run the docker-compose.yaml

and then you can run Docker Compose with

docker compose up -d # (Running in the background)
  1. See the server

you can see the server active in

http://localhost:3000 # Next.js
http://localhost:5000 # Flask

Tip

This method will run Next.js and Flask simultaneously. You can view the WSGI server (Flask) at: http://localhost:5000/

Click here if you want a full detail how to setup .venv and flask with custom directory

1. Create a virtual environment (venv)

python3 -m venv .venv

2. Activate the Environment

Windows

.venv/bin/activate

Linux (if using fish shell)

source .venv/bin/activate.fish

Create dir

Windows

cd src
mkdir backend
type nul > app.py

Linux

cd src
mkdir backend
touch app.py

Note

to deactivate the venv just simply type deactivate

Project Directories

├── src
│   ├── app
│   │   ├── components
│   │   │   ├── DataMiningMethods.tsx
│   │   │   ├── DatasetStats.tsx
│   │   │   ├── FetchData.tsx
│   │   │   ├── FileInput.tsx
│   │   │   └── PreprocessingButton.tsx
│   │   ├── globals.css
│   │   ├── layout.tsx
│   │   └── page.tsx
│   └── backend
│       ├── app.py
│       ├── dataset_uploads (example file if the user upload)
│       │   ├── dataset.csv
│       │   ├── dataset_original.csv
│       │   └── preprocessed_dataset.csv
│       ├── Dockerfile
│       ├── requirements.txt
│       ├── routes
│       │   ├── datamining_methods.py
│       │   ├── dataset.py
│       │   ├── dataset_stats.py
│       │   ├── preprocessing.py
│       │   └── show_data.py
│       └── trained_models (example file if the user training models)
│           ├── logistic_regression.pkl
│           └── random_forest.pkl
├── .dockerignore
├── .gitignore
├── docker-compose.yaml
├── Dockerfile
├── eslint.config.mjs
├── next.config.ts
├── package.json
├── package-lock.json
├── postcss.config.mjs
├── README.md
└── tsconfig.json

Note

You can achive this similar result by typing: tree -a -L 4 -I "node_modules|.git"

THIS ONLY WORK ON LINUX

References

Docker

Flask

Kaggle (dataset for this project)

Medium

PyPI

StackOverflow

Vercel (Next.js)

Penting