Skip to content

ManuelDelarosa1204/Photo-Share

Repository files navigation

Photo Share

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.

Table of Contents

Features

  • User registration and authentication
  • Photo upload and deletion
  • Album creation and deletion
  • User profile with uploaded images and albums

Installation and Setup

Fallow these instructions to setup the project locally on your machine.

  1. Clone the repo
git clone https://github.com/ManuelDelarosa1204/Photo-Share.git
  1. Create a virtual environment
python -m venv venv
  1. Activate the virtual environment

    1. Unix
    source venv/bin/activate
    1. Windows
    venv/Scripts/activate.bat
  2. Install required packages

pip install -r requirements.txt
  1. Apply database migrations
python manage.py migrate
  1. Create a superuser for admin access
python manage.py createsuperuser
  1. Run the development server
python manage.py runserver
  1. In your web browser go to http://localhost:8000

  2. Browse the front facing features by clicking on the links in the navigation bar.

  3. Visit the admin panel at http://localhost/admin, login with the credentials you used when creating the superuser.

Testing

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

About

Photo sharing application built with Django.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published