Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.28 KB

README.md

File metadata and controls

49 lines (39 loc) · 1.28 KB

Installing

  1. Clone down this repository and cd into it.
  2. Once inside this repository, cd into autosearch
  3. Create your virtual environment
python -m venv autosearchenv
  • Start virtual environment on Mac
source ./autosearchenv/bin/activate
  • Start virtual environment on Windows
source ./autosearchenv/Scripts/activate
  1. Run cd .. You should be in a directory containing requirements.txt
  2. Install the app's dependencies:
pip install -r requirements.txt
  1. Run makemigrations python manage.py makemigrations autosearchapp

  2. Run migrate python manage.py migrate

This will create all the migrations needed for Django Framework to post items to the database based on the models in the Models/ directory

  1. You'll need to creat an account with marketcheck.com and obtain an api key for their 'search api'

Once you have an api key, create a file called 'secrets.py' in the main directory and put your key inside

API_KEY="your API_KEY here"

Run Server

make sure you're inside of the 'autosearch' directory

python manage.py runserver Ctrl+C to quit

  1. Go to http://127.0.0.1:8000/ and create an account

  2. Search for some vehicles and enjoy!