This is the main repository for the AmpliconRepository. Currently in development.
- Clone repo using https, ssh, or GitHub Desktop to your local machine
- In a terminal window, move to the cloned Github repo
- Go to the caper top level directory (should see
environment.ymlandrequirements.txt) - Create a new Anaconda environment:
conda env create -f environment.yml
- Activate the new environment (you need to do this everytime before running the server):
conda activate caperenv
- If you don't have a database location set up, set up a location:
mkdir ~/data/db/
- In a terminal window or tab with the
caperenvenvironment active, run MongoDB locally:
mongod --dbpath ~/data/dbormongod --dbpath <DB_PATH>
- Download MongoDB Compass: https://www.mongodb.com/docs/compass/current/install/#download-and-install-compass
- Open the MongoDB Compass app after starting MongoDB locally
- Connect to your local instance of MongoDB:
URI:
mongodb://localhost:27017
- Relevant data will be located in
/caper/projects/
- Open a terminal window or tab with the
caperenvenvironment active - Make sure you have the
config.shfile from another developer (this contains secret key information) - Run the command to initialize variables:
source config.sh
- Open a terminal window or tab with the
caperenvenvironment active - Move to the caper App folder (should see
manage.py) - Run the server locally:
python manage.py runserver
- Open the application on a web browser (recommend using a private/incognito window for faster development):