/librarian

App to manage books in Dallas library

Primary LanguageJavaScript

App for managing library in Dallas Office

Run locally

  1. Install PostgreSQL
  2. Create Database create database librarian;
  3. Install Python
  4. Install Setuptools and pip (see guide above)
  5. export FLASK_APP=/path/to/app.py
  6. export FLASK_DEBUG=1
  7. export FLASK_RUN_PORT=3000
  8. export DATABASE_URL="postgresql://localhost:5432/librarian?user=postgres&password=postgres"
  9. Install Virtualenv (acconplish this by running pip install virtualenv)
  10. Run virtualenv venv
  11. Run source venv/bin/activate on Mac OS X/Linux orvenv\Scripts\activate.bat on windows
  12. Run pip install -r requirements.txt
  13. Migrate database flask db upgrade
  14. Run flask run
  15. Visit http://localhost:3000

Adding new migrations

  1. flask db migrate

Run tests

  1. flask test
  2. cd react_app && CI=true yarn test

Run in the cloud

  1. Install the cf CLI
  2. Run cf push
  3. Visit the given URL