226a0765a4 | ||
---|---|---|
cce_search | ||
.gitignore | ||
LICENSE | ||
Procfile | ||
README.md | ||
requirements.txt | ||
wsgi.py |
README.md
CCE Search Prototype
An unofficial, experimental interface to search records digitized by NYPL's Catalog of Copyright Entries project.
Forked from Sean Redmond's original protype.
Setting up the virtual environment
Using a virtual environment is very important for ensuring that all work is done in a standardized Python environment. This is a quick and dirty guide to working with the virtual environment, for a more detailed guide, read this.
Note: these commands all assume your system refers to your Python 3 installation as python3
. On your system it may be different. You should confirm this before you try these commands.
Creating a new virtual environment
Do this the first time you download the source code, in the root project directory.
python3 -m venv venv
This will create a virtual environment in the directory venv/
. It is very important that you use this same name!
Activating the virtual environment
Always do this before doing any development work!
After activation, your shell prompt should change to reflect the environment you are working in.
Mac/Linux
source venv/bin/activate
Windows
venv\Scripts\activate.bat
Installing required packages
Do this the first time you work on the project (after activating the venv).
pip install -r requirements.txt
Regenerating requirements.txt
Do this whenever you install a new package for this package.
pip freeze > requirements.txt
Deactivating the virtual environment
Always do this when you're finished working, otherwise your other Python work will screw up the project!
deactivate