The repository for the AMOS Team 5 Project for tagging documents using the power of machine learning!
Please find the PDF for the user documentation in docs/user/user_manual.pdf
Please find the PDF for the architecture of the project in docs/architecture/Software-Architecture-Description-AMOS.pdf
- Install Node & npm (https://nodejs.org/en/)
- Install angular-cli
npm install -g @angular/cli - Do
npm installin./frontend
- Install Python3
- pip install -r requirements.txt
Make sure the correct server URL is set in frontend/src/environments/environment.ts or environment.prod.ts
if you are going to build the front end with the --prod flag. If you are
running the flask server on localhost with the default port (5000) this
should not be an issue. Otherwise you will not be able to connect
to the server.
cd frontendnpm cing serve
python app.py
This script is meant to make it quicker to get up and running. It is however necessary to have the following installed:
- python3
- pip
- npm
- node
On Windows the following commands must be available in the command line:
pynpmnode
On Linux / Mac the following commands must be available in the shell
python3orpythonpiporpip3nodenpm
The default operation of this script is:
- Start flask server in the background with host
http://0.0.0.0:5000 - Start angular application at
http://localhost:4200
- Make sure the script can be executed
chmod +x start.h- Because our software requires
python 3.7, you may have to export your desired python version as an environment variable. For example:export python=/home/user/anaconda3/bin/python
this will then cause the script to use this version instead of the default version in the path.
- You can either simply run
./start.shor you can use the following arguments:-hprints usage-iwill install dependencies and start the software-pwill build the front end for production mode and start the rest server
- You can either simply run
start.bat, either by executing it in the command line or by clicking on it, or you can use the following arguments:/hprints usage/iwill install dependencies and start the software/pwill build the front end for production mode and start the rest server