Skip to main content

Sparesnmechs project

Project description

This is a platform that connects car owners to spare part dealers and mechanics.

How to install the project


Make sure you have the following before beginning:

  • python3-dev
  • git
  • pip
  • virtualenv
  • postgresql

Cloning from Github

From your terminal got to the directory you want to clone your project into.

$ cd path/to/your/directory

Clone the project

$ cd git clone

Set up the environment variables

Create a file in your parent project directory

$ cd path/to/your/directory/sparesnmechs
$ touch

Add these environment variables to your file:

#!/usr/bin/env bash

export SECRET_KEY="your-secret-key"
export DEBUG="true"  #For development only
export DB_NAME="db_name"
export DB_USER="db_user"
export DB_PASS="db_pass"
export DB_HOST=""
export DB_PORT="5432"

Setting up the projects dependencies

Navigate into the projects directory from the terminal.

$ cd path/to/your/directory/sparesnmechs

Create a virtual environment for your project

$ python3 -m venv name-of-your-virtualenv

Activate your virtual environment.

$ source name-of-your-virtualenv/bin/activate

Source your file.

$ source

Install the requirements.

(name-of-your-virtualenv)$ pip install -r requirements.txt

Running and testing the project

Create a postgresql database with the information in

Make the initial migrations:

(name-of-your-virtualenv)$ ./ makemigrations
(name-of-your-virtualenv)$ ./ migrate

To run the project:

(name-of-your-virtualenv)$ ./ runserver # the information below will be displayed if everything is okay
Performing system checks...

System check identified no issues (0 silenced).
December 7, 2019 - 18:55:56
Django version 3.0, using settings 'config.settings'
Starting development server at
Quit the server with CONTROL-C.

To test the project:

(name-of-your-virtualenv)$ tox -r # This will run all the tests in the project


Developed by Kenneth Mathenge

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sparesnmechs-0.0.1.tar.gz (823.1 kB view hashes)

Uploaded source

Built Distribution

sparesnmechs-0.0.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page