Before getting started, make sure you have Python and Node.js installed on your system.
Open your command prompt or terminal and run the following commands to install the necessary Python packages:
pip install fastapi uvicorn sqlalchemy PyJWT pandas passlib timedelta python-multipart scikit-learn==1.3.2
python -m pip install --upgrade pip
Then, install the required Node.js packages:
npm install axiom axios path-browserify browserify-fs
Navigate to your project directory in the command prompt or terminal and create a virtual environment by running:
python -m venv env
Activate the virtual environment by running the appropriate script based on your operating system:
- For Windows:
env\Scripts\activate.bat
- For macOS/Linux:
source env/bin/activate
Finally, start the backend server by running:
uvicorn main:app --reload
Now, you're all set to run and develop the km_financial application! When you're finished, you can exit the virtual environment by running:
deactivate