Skip to content

t-ketchem/meep-backend

 
 

Repository files navigation

meep-backend

Setup

Unix

  1. Install python

    sudo apt-get install python3
    
  2. clone the master branch

  3. create a virtual environment in the project root directory

  4. activate the virtual environment source venv/bin/activate

  5. pip install requiremnets pip install -r requirements.txt

  6. create a sqlite database touch dev.db

  7. set dev database environment variable export DEV_DATABASE_URL=sqlite:///dev.db

  8. check to see if it created the tables .tables

  9. try to display data from a table select * from projects; you should see a list of projects display

  10. set flask environment variable to development export FLASK_ENV=development

  11. run the app flask run

  12. test to see if it worked: in a browser, type localhost:5000/projects you should see some json containing project data

Windows

  1. Install python
  2. Install pip
  3. Install virtualenv
  4. clone the master branch
  5. create a virtual environment in the project root directory
  6. activate the virtual environment venv\Scripts\activate
  7. pip install requirements pip install -r requirements.txt
  8. set dev database environment variable set DEV_DATABASE_URL=sqlite:///dev.db
  9. set flask environment variable to development set FLASK_ENV=development
  10. run the app flask run
  11. test to see if it worked: in a browser, type localhost:5000/projects you should see some json containing project data

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%