A simple catalog for materials in the IS Lab.
This is a class project for students in IS289-4 - Web Development. It is intended for use by the student library/lab in the Information Studies Department at UCLA.
At the command line:
git config --global user.name "<your name>"
git config --global user.email <your email>
- Go to the directory on your machine where you want to store your project repositories:
cd ~/projects
(or something similar) - Clone this repository:
git clone https://github.com/joshuago78/labcat.git
- Change directory:
cd labcat
- Create a virtual environment:
python3 -m venv ENV
- Activate the environment
source ENV/bin/activate
- Install the dependencies:
pip install -r requirements.txt
- Change directories to the django project:
cd labcat
Now you are all set to run the Django management commands
python manage.py shell
starts the Python interpreter that is Django aware.python manage.py dbshell
starts the shell for SQLite3 (or whatever RDBMS you configure)python manage.py runserver
runs your application on port 8000 (point your browser at http://127.0.0.1:8000)python manage.py test catalog
runs the test suite in thecatalog/tests.py
filepython manage.py makemigrations
checks for changes to your models and makes a migration filepython manage.py migrate
converts migration files to SQL and implements the changes in the database
Steps to take when working on this project
- Pick an issue (or write a new one) to work on (remember the number)
- Go to your project at the command line:
cd <some path>/labcat
- Activate virtual environment:
source ENV/bin/activate
- Checkout master branch:
git checkout master
- Create a new branch off of master:
git checkout -b <issue desc>/<issue #>
- Make your changes (inlcuding tests!)
- Stage your changes for commit:
git add <some file>
- Commit your changes:
git commit -m "some message summarizing what you did"
(You can reference the issue number as well: "addresses #39" or "fixes #39") - Push changes to github:
git push origin <your branch>
- Create a Pull Request in Github, assign the instructor as a reviewer.
- Reviewer will review the code, and if it is OK and the tests pass, then merge.
Some frontend prototypes have been drawn using Figma at the link below: https://www.figma.com/file/IVjtY6Pc9NC9cqVIQzPVZPad/IS-Lab-Catalog-App?node-id=0%3A1