Giter Site home page Giter Site logo

smart-library's Introduction

Smart Library

Smart Library is a library management system using

  • Python 3.5.2 (Programming Language)
  • Django 1.10.2 (Web Framework)

This project was submitted to Software Engineering subject, CE KMITL 2016

Contributors

  • Supawit Kansompoj
  • Siridej Phanathanate
  • Peerawat Pipattanakulchai
  • Patcharapon Jantana
  • Isara Naranirattisai

to Install Smart Library

  • Clone Smart-Library Repo

     	$git clone https://github.com/DreamN/Smart-Library.git
    
  • Install PIP

  • Install Django

     	$pip install Django==1.10.2
    
  • Install Requirement

    		 $pip install -r requirements.txt
    
  • Create local_settings.py

     Smart-Library/
     	smart_library/
     		__init__.py
     		local_settings.py
     		settings.py
     		urls.py
     		views.py
     		wsgi.py
     	library/
     	templates/
     	.gitignore
     	manage.py
     	requirements.txt
    

    ###Database and paste and code below on local_settings.py and edit for your Database then save!

     import os
    
     # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
     BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
    
     # Database
     # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
             DATABASES = {
                 'default': {
                     'ENGINE': 'django.db.backends.postgresql',
                     'NAME': 'mydatabase',
                     'USER': 'mydatabaseuser',
                     'PASSWORD': 'mypassword',
                     'HOST': '127.0.0.1',
                     'PORT': '5432',
                 }
             }

    or replace with code below for sqlite3

    DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
    }

    ##Email setting

*Smart Library System is required email for send generated random-password to student's email when new student account is created

code below is an example for Gmail(Also paste this setting in local_settings.py same as the same as 'database')

  # for gmail
  EMAIL_USE_TLS = True
  EMAIL_HOST = 'smtp.gmail.com'
  EMAIL_HOST_USER = '[email protected]'
  EMAIL_HOST_PASSWORD = 'yourpassword'
  EMAIL_PORT = 587
  • Make Migrations
$ python manage.py makemigrations
  • Migrate
$ python manage.py migrate
  • Create Superuser (for access site/admin)
$ python manage.py createsuperuser

##some objects must be created before use the system Go to Django Admin and then

  • Create Student object with student id 'libraryStore' (we use to store every 'at library' books)
  • Create BookCategories with name 'DeleteCat' (this is category which deleted book will changed catagories to)

*Django Deployment Checklist

Run Server

$ python manage.py runserver

smart-library's People

Contributors

mr54ndm4n avatar cobaramin avatar peachmanza avatar 0x7e50616f avatar naynaez avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.