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.
Before running this application, ensure you have the following installed:
- Python (version 3.11) test
- pip (Python package installer)
- Git (version control)
- Clone the repository:
git clone https://github.com/SamB-CCS/srm_project
- Navigate to the project directory:
cd srm_project
- Create a virtual environment (recommended):
python -m venv env
- Activate the virtual environment:
- On Windows:
env\Scripts\activate
- On Unix or macOS:
source env/bin/activate
- Next, install the required packages:
pip install -r requirements.txt
- Apply database migrations:
python manage.py migrate
- Create a superuser (optional, but recommended for admin access):
python manage.py createsuperuser
Follow the prompts to set up a superuser account.
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 toFalse
in production environments.ALLOWED_HOSTS
: Add your domain or server IP address.DATABASES
: Configure your database settings.
- Start the development server:
python manage.py runserver
- Open your web browser and navigate to
http://localhost:8000
to access the application.
To run the test suite, use the following command:
pytest
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive commit messages.
- Push your changes to your forked repository.
- Create a pull request, and we'll review your changes.