diff --git a/Inventory/admin.py b/Inventory/admin.py
new file mode 100644
index 0000000..8c38f3f
--- /dev/null
+++ b/Inventory/admin.py
@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.
diff --git a/Inventory/models.py b/Inventory/models.py
new file mode 100644
index 0000000..71a8362
--- /dev/null
+++ b/Inventory/models.py
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
diff --git a/Inventory/settings.py b/Inventory/settings.py
index a276238..b373a85 100644
--- a/Inventory/settings.py
+++ b/Inventory/settings.py
@@ -37,6 +37,9 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'questionaire.apps.QuestionaireConfig',
+ 'chat.apps.ChatConfig',
+ 'rest_framework',
]
MIDDLEWARE = [
@@ -122,4 +125,4 @@
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "interface/static")
]
-STATIC_ROOT = os.path.join(BASE_DIR, 'assets')
\ No newline at end of file
+STATIC_ROOT = os.path.join(BASE_DIR, 'assets')
diff --git a/Inventory/urls.py b/Inventory/urls.py
index ada27ca..d3f4b7e 100644
--- a/Inventory/urls.py
+++ b/Inventory/urls.py
@@ -1,22 +1,17 @@
-"""Inventory URL Configuration
-
-The `urlpatterns` list routes URLs to views. For more information please see:
- https://docs.djangoproject.com/en/3.0/topics/http/urls/
-Examples:
-Function views
- 1. Add an import: from my_app import views
- 2. Add a URL to urlpatterns: path('', views.home, name='home')
-Class-based views
- 1. Add an import: from other_app.views import Home
- 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
-Including another URLconf
- 1. Import the include() function: from django.urls import include, path
- 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
-"""
-from django.contrib import admin
-from django.urls import path, include
+from django.urls import path
+from interface import views
+from item.views import ItemChartView
urlpatterns = [
+ path('', views.cover, name='cover'),
+ path('dashboard', views.dashboard, name='dashboard'),
+ path('categories', views.categories, name='categories'),
+ path('check', views.check, name='check'),
+ path('arsenal', views.arsenal, name='arsenal'),
+ # path('', ItemChartView.as_view(), name='home'),
+ path('chart', ItemChartView.as_view(), name = 'chart'),
+ path('thechatbot',include('questionaire.urls')),
+ path('chat/',include('chat.urls')),
path('admin/', admin.site.urls),
- path('', include('interface.urls'))
+
]
diff --git a/Inventory/views.py b/Inventory/views.py
new file mode 100644
index 0000000..ee369aa
--- /dev/null
+++ b/Inventory/views.py
@@ -0,0 +1,22 @@
+from django.shortcuts import render
+import sys
+
+# Create your views here.
+def cover(request):
+ return render(request, "interface/cover.html")
+
+def dashboard(request):
+ return render(request, "interface/dashboard.html")
+
+def categories(request):
+ return render(request, "interface/categories.html")
+
+def check(request):
+ return render(request, "interface/check.html")
+
+
+def arsenal(request):
+ return render(request, "interface/arsenal.html")
+
+def chart(request):
+ return render(request,"chart.html")
\ No newline at end of file
diff --git a/README.md b/README.md
index 37cf979..4a2697b 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,122 @@
-# Inventory_System_Eurymedons
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Inventory Management System by Eurymedons
+
+
+## Basic Info
+A well designed management system(browser based web application) for eliminating time consuming physical management systems/methods, error-prone manual record keeping and physical reporting methods.
+
+This project is based on python with various user-friendly features which are completely customizable and editable in the long run.
+
+A preview is shown below
+![Image Preview](https://github.com/codesbyN/Inventory-image-Eurymedon/blob/master/SS1.png "Image Preview")
+### Features - :eyes:
+ * Frameworks -
+
+ Django framework, Dango Rest, Bootstrap
+ * User friendly UI created with Bootstrap
+ * Various database in different sections
+ * Admin panel created with Django
+ * Customizable user login system with editable user profiles
+ * Contact page for easier help and feedbacks
+## Functional features - :handshake:
+ * Dashboard/Charts for visualization of the data
+ * Admin panel customizable and different access level
+ * Encryption feature in lieu of barcode system for better and safe transfer of data in the check in/out system. Also it can be used with various other features, hence improving its flexibility. Also it reduces the disadvantages in case of security of barcode systems.
+ * Specific ID system for employees and different items, equipped with the encryption feature
+ * Categories for different types of items stored. Each item has its own profile and can be viewed for more details. More categories can be added as per requirements if needed
+ * Record/History feature for different kinds of items
+ * Record keeping of users and filter feature for easy and fast searches
+ * Pdf download option of records to be used as hard copy.
+ * Navigation tutorial section for easy use.
+ * Only selected admins or superusers are permitted for full acccess of the inventory. Only superusers/selected admins can give users specific permissions and other customzatios from the admin panel.
+ * A user friendly chatbot for easy maintanence and help of the system
+
+ # What makes our Inventory better than everyone else? :clap:
+
+ The problem with the traditional inventory system was that they were not secured and easily maintainable. In a world of Technologies, there is need of an online system of inventory management. But still most inventory system is made using the outdated php language or languages such as React which is known for it's unstable modules sometimes.
+ After going through a number of articles we found out that Django will be the best language for an inventory system. The Django language is open source and maintain by a large communities and with every update it becomes more and more better. It is very much secure than the other languages and even a normal user can be quickly learn to handle the models of the websites and customize it accordingly.
+
+ And the very next thing that makes us better than any other inventory systems is that instead of the traditional barcode system, we are now using a new cryptography based encryption system. We found out that using barcodes have now become outdated and it is very vulnerable. Any person can retrieve the information stored in a barcode and it is big concern. Even though we are just sending equiments from one place to another, we have to make everything in a secure way.
+
+ Now an user can use our encryption system, input the data such as the quantity of items and their types, encrypt it with a key and print out the encrypted text(instead of the barcode) and send it out with the items. The user who will recieve it will now use the key given to him and decrypt the text(instead of the usual scanning of the barcode).
+ This way is more secure as only the person who has the key can access the information.
+
+ The Encryption system can also be used to exchange information between different person and can be put into many different uses as required by the user.
+
+# Installation -
+The `requirements.txt` file contains all the required libraries to be installed.
+
+Use `pip install -r requirements.txt` to install the required dependencies(Or pip3).
+
+python to be more than 3.0.0 and django –version 3.1.1. Also bootstrap 4.1,4.0
+
+Extra apps needed are -
+ * Pillow
+ * WeasyPrint
+ * Crispy_forms
+ * Widget tweaks
+ * chart js
+ * gtk for windows
+
+ Use `pip install libname` to install the apps.
+
+ Steps after extracting the zip file -
+ * Go to the project folder and start the environment with conda or venv.
+ * Run `python manage.py collecstatic`
+ * Run `python manage.py makemigrations` -> `python manage.py sqlmigrate appname migration_number` -> `python manage.py migrate`
+ * Finally run `python manage.py runserver` to run the site on your localhost on port 8000.
+ * use `python manage.py createsuperuser` to create a super user and then login to the admin panel and enjoy the databases.
+
+ ## Issues to be solved - :hourglass:
+ * The chatbot is still an incomplete feature. Also as this is a prototype it has few errors to be solved but it perfectly shows the features and the main aim of of the project we built.
+ * Since we had only one month and we have only made a prototype with a basic template, everything in the website can be improved with given time and made better.
+
+# Technologies used
+![JavaScript](https://img.shields.io/badge/-JavaScript-black?style=flat-square&logo=javascript)
+![Python](https://img.shields.io/badge/-Python-black?style=flat-square&logo=Python)
+![Bootstrap](https://img.shields.io/badge/-Bootstrap-563D7C?style=flat-square&logo=bootstrap)
+![ElasticSearch](https://img.shields.io/badge/-ElasticSearch-005571?style=flat-square&logo=elasticsearch)
+![Git](https://img.shields.io/badge/-Git-black?style=flat-square&logo=git)
+![HTML5](https://img.shields.io/badge/-HTML5-E34F26?style=flat-square&logo=html5&logoColor=white)
+![CSS3](https://img.shields.io/badge/-CSS3-1572B6?style=flat-square&logo=css3)
+![Heroku](https://img.shields.io/badge/-Heroku-430098?style=round&logo=heroku)
+![django](https://img.shields.io/badge/-django-450098?style=round&logo=django)
+
+
+ ### Site is hosted on [Eurymedon Inventory](www.eurymedon-inventory.herokuapp.com)
+ **To login to the admin and view the models go to**
+ [admin login](eurymedon-inventory.herokuapp.com/admin)
+ ### login : demo
+ ### Password:inventory
+
+
+ # A quick Navigation and feature info
+ [Charts](http://eurymedon-inventory.herokuapp.com/dashboard/) - This is where you can dyanamically view charts in different ways, these are easily customizable according to the user needs.
+
+ [Encryption](http://eurymedon-inventory.herokuapp.com/encryption/encryption/) - This is the menu for the encryption system.
+
+ [Categories](http://eurymedon-inventory.herokuapp.com/categories) - This is menu for categories and product information page.
+
+ [People List and Pdf](http://eurymedon-inventory.herokuapp.com/users/user-list) - This is place where you can use our filter option and also elastisearch to find a specific product or person. This page can also show you the pdf option by which you can download any record.
+
+ [The Chatbot](http://eurymedon-inventory.herokuapp.com/thechatbot/thechatbot) - GET/POST/PUT/DELETE for Questionaires - Use for listing questionaires
+
+ [Chat list](http://eurymedon-inventory.herokuapp.com/chat/thechatbotchat/) - GET/POST/PUT/DELETE for Chat history of User
+
+ [Chat instance](http://eurymedon-inventory.herokuapp.com/chat/thechatbotchat/chatbot/) - Uploading json file of dialog tree
+
+
+
+
diff --git a/chart.html b/chart.html
new file mode 100644
index 0000000..4308a4a
--- /dev/null
+++ b/chart.html
@@ -0,0 +1,78 @@
+{% extends 'interface/base.html'%}
+
+{% block title %} Item ranking {% endblock title %}
+
+{% block scripts %}
+
+
+
+{% endblock scripts %}
+
+{% block content %}
+
+
+
+
+
+
Chart.js Fun
+
Try to update the chart type and randomize the data!
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam.
+