Photo Share is a web application built with Django that allows users to upload, share, and explore photos. This README file provides an overview of the project, how to set it up, and basic usage instructions.
- User registration and authentication
- Photo upload and deletion
- Album creation and deletion
- User profile with uploaded images and albums
Fallow these instructions to setup the project locally on your machine.
- Clone the repo
git clone https://github.com/ManuelDelarosa1204/Photo-Share.git
- Create a virtual environment
python -m venv venv
-
Activate the virtual environment
- Unix
source venv/bin/activate
- Windows
venv/Scripts/activate.bat
-
Install required packages
pip install -r requirements.txt
- Apply database migrations
python manage.py migrate
- Create a superuser for admin access
python manage.py createsuperuser
- Run the development server
python manage.py runserver
-
In your web browser go to
http://localhost:8000
-
Browse the front facing features by clicking on the links in the navigation bar.
-
Visit the admin panel at
http://localhost/admin
, login with the credentials you used when creating the superuser.
To run the test that are provided with the application you can run pytest
in the root directory.
Run all test found in the project:
pytest
To run a specific test you can run the command pytest <directory>
, pytest <directory>/<file>.py
.
Run a test for a specific directory:
pytest user/
Run a test for a specific file in a directory:
pytest user/tests/test_models.py