Unofficial, experimental interface to search Catalog of Copyright Entries
 
 
 
Go to file
Dylan DiGeronimo 226a0765a4 Update gitignore to include vscode settings folder 2019-10-26 00:11:53 -04:00
cce_search A notes for AF and AI 2019-08-13 23:06:29 -04:00
.gitignore Update gitignore to include vscode settings folder 2019-10-26 00:11:53 -04:00
LICENSE Add license 2019-07-13 23:54:02 -04:00
Procfile Launch with gunicorn 2019-07-14 11:22:16 -04:00
README.md Corrected deactivation command 2019-10-25 17:20:06 -04:00
requirements.txt Launch with gunicorn 2019-07-14 11:22:16 -04:00
wsgi.py Launch with gunicorn 2019-07-14 11:22:16 -04:00

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