It's a homework but also a quick demonstration of how Flask + Vue + mongoDB works.
- pyenv (optional)
- pipenv or install the packages listed below
- Python packages
- flask
- flask-cors
- pymongo
- python-magic
- Python packages
- npm
- @vue/cli >= 4.5.8
- Run
pipenv install
to install all dependencies if you are using pipenv - Prepare a mongoDB
- Copy
config.example.py
toconfig.py
- Modify the connection string (host variable) in
config.py
- Make a directory named "cache" under
<repo>/backend/
- Run
npm install
to install all dependencies.
- Run
pipenv run python server.py
- Run
npm run serve
- Then visit http://localhost:8080 to see the result.
- This project is not designed for deployment but for a quick demonstration of how Flask + Vue + mongoDB works.