This is a simple web-based application built with Flask, designed to create and modify metadata files.
Make sure you have the following installed on your system:
- Python 3.12 - Download and install from Python's official site
- Git - Installation guide
- R - Download from CRAN
To successfully run this project, you need to set the R_HOME environment variable on your computer. This environment variable should point to the directory where R is installed. Follow the steps below to configure it:
- If you have R installed, you should find it in a directory similar to one of these:
C:\Program Files\R\R-x.x.x\(wherex.x.xis the version number of R installed)C:\Users\YourUsername\Documents\R\R-x.x.x\
If you do not have R installed, please download and install it from the official R website.
On Windows:
- Press
Win + Sand type Environment Variables. - Click on Edit the system environment variables.
- In the System Properties window, click on Environment Variables....
- Under System variables (or User variables if you only want to set it for your user), click New....
- In the Variable name field, enter:
R_HOME. - In the Variable value field, enter the path to your R installation directory. For example:
C:\Program Files\R\R-x.x.x\
- Click OK to close each window and apply
Open a R terminal and run the following
install.packages("devtools")
devtools::install_github('pglpm/inferno')-
Make sure to have Python 3.12 activated:
python --version
-
Clone the repository:
git clone https://github.com/h587916/modify_metadata.git cd modify_metadata -
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Start the flask app:
flask run
-
Access the application:
- Open your web browser and navigate to
http://127.0.0.1:5000.
- Open your web browser and navigate to
do you have some improvements to this README.md file+