Skip to content

dervent/Mongo_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Project

This is the repository for group 5's Contemporary Databases (ISTE.438.01) project.

Initial Local Setup

Setup steps:

  1. Clone the repository Mongo_Project and navigate to its local directory.
  2. Ensure you have Python 2.7 downloaded and installed. Ensure Python is part of PATH.
  3. 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
  4. (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
  5. 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.

Running the App Locally

  1. Ensure you have started up your local MongoDB database (and optionally, activated your virtual environment)
  2. Navigate to the Mongo_Project\app directory and set the FLASK_APP env variable
    $ set FLASK_APP=app.py (use export on Mac)
  3. Run the application
    $ flask run
  4. Open a browser and navigate to http://127.0.0.1:5000/ to interact with the app

References

About

MongoDB group project for ISTE.438.01

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •