beroman is a PWA to visually show the waiting time of the US employment based green card.
beroman monthly scrape the official site to get the US employment based green card waiting time, and visualize the waiting time in a graph by region and employment cagetory. So that green card applicants will have a whole picture of their wait time and trend.
- python version 3.11.7
- at root, create py env by
python -m venv .venvand activate.venv\Scripts\activate - at root, run
pip3 install -r requirements.txtto install python packages - go to
frontenddirectory, runyarn installto install npm packages - create a
.envfile in the root directory, and put your mongodb service urlMONGO_URL=<Your mongodb service url>
- go to
frontenddirectory, runyarn buildto build client - at root, run
flask run --port 3004to start local server - visit the local server
- scrape the official website to get the PDs, a task can be scheduled to get the data every month, refer to
scripts\scrape_task.sh