This is the repository for group 5's Contemporary Databases (ISTE.438.01) project.
Setup steps:
- Clone the repository
Mongo_Project
and navigate to its local directory. - Ensure you have Python 2.7 downloaded and installed. Ensure Python is part of
PATH
. - Download and install Pip:
a. Download get-pip.py and save to a local directory
b. Install Pip by running:$ python get-pip.py
c. Verify successful installation by running with no errors:$ pip freeze
- (Optional) Set up and work in a virtual environment.
a. Install virtual environment & virtual environment wrapper
$ pip install virtualenv
$ pip install virtualenvwrapper
$ pip install virtualenvwrapper-win
(for Windows only)
b. Create and activate your virtual environment
$ mkvirtualenv mongo_project
(or any name you would like)
$ workon mongo_project
- At the top level of your
Mongo_Project
directory, install all the Python dependencies you will need for the project.
$ pip install -r requirements.txt
If there are any more dependencies/modules that you have to use, add them to the text file.
- Ensure you have started up your local MongoDB database (and optionally, activated your virtual environment)
- Navigate to the
Mongo_Project\app
directory and set theFLASK_APP
env variable
$ set FLASK_APP=app.py
(useexport
on Mac) - Run the application
$ flask run
- Open a browser and navigate to
http://127.0.0.1:5000/
to interact with the app