Car-trade is a web application that enables users to trade cars.
Usage
Html5, CSS3, python, Django, PSQL
- Clone this repository:
`git clone https://github.com/katherine95/Car-trade.git`
- Change the directory into the project directory:
`cd Car-trade`
- Fetch all origin to get all branches:
`git fetch origin`
- Checkout to
develop
branch:
`git checkout develop`
- Create a virtual environment to allow you to manage separate package installations for different projects:
`virtualenv -p python3 venv`
- Activate virtual environment:
`source venv/bin/activate`
- Install requirements(all packages that the project needs):
`pip install -r requirements.txt`
- Start server
`python manage.py runserver`
- Setup database:
`sudo -u postgres psql`
`CREATE DATABASE dbname;`
-
Configure database in projectname/settings.py file(dbname,user,password and maybe port if necessary):
-
Create an admin user:
`python manage.py createsuperuser`
- Start server and head over to admin url on browser
localhost:8000/admin
:
`python manage.py runserver`