Skip to content

SamB-CCS/srm_project

Repository files navigation

QA Assignment - Supplier Relationship Manager (SRM)

This website application is for the Software Engineering & Agile module of the DTS apprenticeship course. This application is a basic SRM that can collect data for suppliers that could be used by customers within a procurement organisation. Users can register, log in, create, read, and update data entries. Admin users have access to delete functionality too.

Prerequisites

Before running this application, ensure you have the following installed:

  • Python (version 3.11) test
  • pip (Python package installer)
  • Git (version control)

Setup

  1. Clone the repository:
git clone https://github.com/SamB-CCS/srm_project
  1. Navigate to the project directory:
cd srm_project
  1. Create a virtual environment (recommended):
python -m venv env
  1. Activate the virtual environment:
  • On Windows:
env\Scripts\activate
  • On Unix or macOS:
source env/bin/activate
  1. Next, install the required packages:
pip install -r requirements.txt
  1. Apply database migrations:
python manage.py migrate
  1. Create a superuser (optional, but recommended for admin access):
python manage.py createsuperuser

Follow the prompts to set up a superuser account.

Configuration

Before running the application, you may need to configure some settings. Open the srm_project/settings.py file and adjust the following variables according to your needs:

  • SECRET_KEY: Set a secure secret key for your application.
  • DEBUG: Set to False in production environments.
  • ALLOWED_HOSTS: Add your domain or server IP address.
  • DATABASES: Configure your database settings.

Running the Application

  1. Start the development server:
python manage.py runserver
  1. Open your web browser and navigate to http://localhost:8000 to access the application.

Running Tests

To run the test suite, use the following command:

pytest

Contributing

If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them with descriptive commit messages.
  4. Push your changes to your forked repository.
  5. Create a pull request, and we'll review your changes.

Acknowledgments

About

QA Software Engineering and DevOps project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published