Inventory Management Systen
- Clone the repo:
$ git clone https://github.com/NtuDev/tenlifestylegroup.git
$ cd tenlifestylegroup
- Setup the VirtualEnv
$ virtualenv ve
$ source ve/bin/activate
- Install requirements:
$ pip3 install -r requirements.txt
$ pip3 install -r requirements-dev.txt
- Run tests
$ python3 manage.py test
- Setup database
$ python3 manage.py migrate
$ python3 manage.py
- Start the application
$ python3 manage.py runserver
You can now access the demo site on http://localhost:8000
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>
Download CSV files:
$ csv
$ csv/members
$ csv/inventory