Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

BasileVu/swapp

Repository files navigation

Swapp

Build Status

Description

A project developped at HEIG-VD in the PDG course in a team of 5 people: Sébastien Boson, Antoine Drabble, Sébastien Richoz, Mathieu Urstein and Basile Vu.

It consists in a web platform on which users can trade objects. Various filters are provided to find objects, such as object proximity, price range, categories and so on.

Overview

home The home page with popular tradable items

item-1 item-2 Overview of an item with its various details and possible interactions

swapp2 Preview of a swap proposition

search-advanced Various search filters can be applied, with advanced filters such as distance and/or price ranges

Installation

Prerequisites

  • Python 3.6
  • npm 3.10.10
  • Sass 3.5.1

Installation steps

Begin by cloning the repo and go into it:

$ git clone git@github.com:BasileVu/swapp.git
$ cd swapp

Install backend dependencies

Before running the command below, you may want to setup a virtualenv in order to avoid installing the packages globally.

$ pip install -r requirements.txt

Install frontend dependencies

$ npm install
$ grunt

Setup the database

Before anything, you must apply the Django migrations:

python manage.py migrate

Optionally, you can pre-populate the database with examples:

$ python populate.py

Running the server

You can run the server by running the command below:

$ python manage.py runserver

The app should be running at http://127.0.0.1:8000.