Ten Lifestyle Group

Inventory Management Systen

Django CI

Requirements:

Getting Started

  1. Clone the repo:
$ git clone https://github.com/NtuDev/tenlifestylegroup.git
$ cd tenlifestylegroup
  1. Setup the VirtualEnv
$ virtualenv ve
$ source ve/bin/activate
  1. Install requirements:
$ pip3 install -r requirements.txt
$ pip3 install -r requirements-dev.txt
  1. Run tests
$ python3 manage.py test
  1. Setup database
$ python3 manage.py migrate
$ python3 manage.py
  1. Start the application
$ python3 manage.py runserver

You can now access the demo site on http://localhost:8000

Useful links

Csv Upload, Book and Cancel Booking

$ Upload members csv file: http://127.0.0.1:8000/members/upload
$ Upload inventory csv file: http://127.0.0.1:8000/inventory/upload
$ Create booking: http://127.0.0.1:8000/book/
$ Delete booking: http://127.0.0.1:8000/book/cancel/<booking_id>

CSV Files

Download CSV files:

$ csv
$ csv/members
$ csv/inventory